classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: Patch to PlainDocument fixes Mauve regressions


From: Anthony Balkissoon
Subject: [cp-patches] FYI: Patch to PlainDocument fixes Mauve regressions
Date: Wed, 16 Nov 2005 11:41:25 -0500

Very sorry, but my PlainDocument patch yesterday caused some regressions
in text components that use PlainDocument.  Yesterday's patch had the
performance improvement of not having to look through the entire
document to index all of the lines every time text is inserted.
Instead, we only look at the range where the text was inserted to look
for new lines to index.  However, if we find any newlines, the very
first new Element we add doesn't start at the point of insertion, it
starts at the beginning of the line where text was inserted.  This is
fixed now.


2005-11-16  Anthony Balkissoon  <address@hidden>

        * javax/swing/text/PlainDocument.java:
        (insertUpdate): The very first new element added doesn't start at the 
        start of the event, it starts at the start offset of the Element that
        contains the start of the event.

--Tony

Attachment: PlainDocumentInsertUpdateFirstElementFix.diff
Description: Text Data


reply via email to

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