classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: swing.text.Utilities fix


From: Anthony Balkissoon
Subject: [cp-patches] FYI: swing.text.Utilities fix
Date: Mon, 31 Oct 2005 15:06:26 -0500

the getTabbedTextOffset method in javax.swing.text.Utilities was
ignoring the offset of the Segment parameter and starting from the
beginning each time.  This is now fixed, which fixes the second part of
PR 24316 and improves line-wrapping behavior (will check-in later).
This method was also incorrectly expanding newlines as tabs, and not
allowing the x-position to reach the specified end x-position.  These
problems are also fixed. 

2005-10-31  Anthony Balkissoon  <address@hidden>

        * javax/swing/text/Utilities.java:
        (getTabbedTextOffset): Adjusted for loop bound down by s.offset and
        adjusted array index up by s.offset.  This fixes the second part of 
        PR 24316.  Expand tabs, not newlines.  Allow the x-position to reach
        the end specified position (use < instead of <=).

--Tony

Attachment: UtilitiesGetTabbedTextOffsetFix.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]