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

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

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

revision 1.15 by abalkiss, Wed Oct 5 18:12:16 2005 UTC revision 1.16 by abalkiss, Thu Oct 6 20:45:12 2005 UTC
# Line 250  public class PlainView extends View Line 250  public class PlainView extends View
250            }            }
251        }        }
252      maxLineLength = span;      maxLineLength = span;
253      return maxLineLength;      return Math.max(maxLineLength, 0);
254    }    }
255        
256    public float getPreferredSpan(int axis)    public float getPreferredSpan(int axis)
# Line 349  public class PlainView extends View Line 349  public class PlainView extends View
349            {            {
350            }            }
351                    
352            
353            if (seg == null || seg.array == null || seg.count == 0)
354              continue;
355            
356          int width = metrics.charsWidth(seg.array, seg.offset, seg.count);          int width = metrics.charsWidth(seg.array, seg.offset, seg.count);
357          if (width > longestNewLength)          if (width > longestNewLength)
358            {            {

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