Changeset 238

Show
Ignore:
Timestamp:
04/28/08 10:25:02 (4 months ago)
Author:
meghan
Message:

fixed ticket #200

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • MediAnnotate/trunk/src/org/mediannotate/dom/QTMovie.java

    r227 r238  
    150150 
    151151        public void setIn(long time) { 
     152                if(time > outTime) { 
     153                        outTime = getDuration(); 
     154                } 
    152155                this.inTime = time; 
    153156        } 
    154157 
    155158        public void setOut(long time) { 
     159                if(time < inTime) { 
     160                        inTime = 0; 
     161                } 
    156162                this.outTime = time; 
    157163        } 
  • MediAnnotate/trunk/src/org/mediannotate/ui/TimeLinePanel.java

    r155 r238  
    6767         
    6868        public void setIn(float in_percentage) { 
    69                 if(in_percentage > currentOut) currentIn = currentOut; 
    70                 else currentIn = in_percentage; 
     69                if(in_percentage > currentOut) { 
     70                        currentOut = 1; 
     71                } 
     72                currentIn = in_percentage; 
    7173                inActive = true; 
    7274                repaint(); 
     
    7476         
    7577        public void setOut(float out_percentage) { 
    76                 if(out_percentage < currentIn) currentOut = currentIn; 
    77                 else currentOut = out_percentage; 
     78                if(out_percentage < currentIn) { 
     79                        currentIn = 0; 
     80                } 
     81                currentOut = out_percentage; 
    7882                outActive = true; 
    7983                repaint();