/[classpath]/classpath/javax/swing/text/GapContent.java
ViewVC logotype

Diff of /classpath/javax/swing/text/GapContent.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22 by rabbit78, Thu Aug 25 19:19:19 2005 UTC revision 1.23 by langel, Wed Sep 7 17:53:01 2005 UTC
# Line 114  public class GapContent Line 114  public class GapContent
114       */       */
115      public int getOffset()      public int getOffset()
116      {      {
117        if (mark <= gapStart)        if (mark <= gapStart || mark <= gapEnd)
118          return mark;          return mark;
119        else        else
120          return mark - (gapEnd - gapStart);          return mark - (gapEnd - gapStart);
# Line 372  public class GapContent Line 372  public class GapContent
372      if (index < 0)      if (index < 0)
373        index = -(index + 1);        index = -(index + 1);
374      positions.add(index, pos);      positions.add(index, pos);
375        
376      return pos;      return pos;
377    }    }
378    

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26