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

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

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

revision 1.13 by abalkiss, Wed Sep 28 14:59:31 2005 UTC revision 1.14 by rabbit78, Thu Oct 6 20:16:32 2005 UTC
# Line 232  public class Utilities Line 232  public class Utilities
232      // At the end of the for loop, this holds the requested model location      // At the end of the for loop, this holds the requested model location
233      int pos;      int pos;
234      int currentX = x0;      int currentX = x0;
235    
236      for (pos = p0; pos < s.getEndIndex(); pos++)      for (pos = p0; pos < s.getEndIndex(); pos++)
237        {        {
238          char nextChar = s.array[pos];          char nextChar = s.array[pos];
239            if (nextChar == 0)
240              {
241                if (! round)
242                  pos--;
243                break;
244              }
245          if (nextChar != '\n')          if (nextChar != '\n')
246            currentX += fm.charWidth(nextChar);            currentX += fm.charWidth(nextChar);
247          else          else

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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