/[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.4.2.2 by gnu_andrew, Sat Jan 15 17:02:21 2005 UTC revision 1.4.2.3 by gnu_andrew, Sun Jan 16 02:14:50 2005 UTC
# Line 98  public class Utilities Line 98  public class Utilities
98      for (int offset = s.offset; offset < (s.offset + s.count); ++offset)      for (int offset = s.offset; offset < (s.offset + s.count); ++offset)
99        {        {
100          char c = buffer[offset];          char c = buffer[offset];
101          if (len > 0 && (c == '\t' || c == '\n'))          if (c == '\t' || c == '\n')
102            {            {
103              g.drawChars(buffer, pos, len, pixelX, pixelY + ascent);                          if (len > 0) {
104              pixelX += pixelWidth;                g.drawChars(buffer, pos, len, pixelX, pixelY + ascent);            
105              pixelWidth = 0;                pixelX += pixelWidth;
106                  pixelWidth = 0;
107                }
108              pos = offset+1;              pos = offset+1;
109              len = 0;              len = 0;
110            }            }
111                      
112          switch (c)          switch (c)
113            {            {
114            case '\t':            case '\t':

Legend:
Removed from v.1.4.2.2  
changed lines
  Added in v.1.4.2.3

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