/[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.15 by abalkiss, Tue Oct 25 17:38:08 2005 UTC revision 1.16 by abalkiss, Mon Oct 31 20:03:53 2005 UTC
# Line 233  public class Utilities Line 233  public class Utilities
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.count; pos++)
237        {        {
238          char nextChar = s.array[pos];          char nextChar = s.array[s.offset+pos];
239          if (nextChar == 0)          if (nextChar == 0)
240            {            {
241              if (! round)              if (! round)
242                pos--;                pos--;
243              break;              break;
244            }            }
245          if (nextChar != '\n')          if (nextChar != '\t')
246            currentX += fm.charWidth(nextChar);            currentX += fm.charWidth(nextChar);
247          else          else
248            {            {
# Line 251  public class Utilities Line 251  public class Utilities
251              else              else
252                currentX = (int) te.nextTabStop(currentX, pos);                currentX = (int) te.nextTabStop(currentX, pos);
253            }            }
254          if (currentX >= x)          if (currentX > x)
255            {            {
256              if (! round)              if (! round)
257                pos--;                pos--;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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