classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: GapContent fix


From: Roman Kennke
Subject: [cp-patches] FYI: GapContent fix
Date: Wed, 5 Oct 2005 22:27:19 +0200 (CEST)
User-agent: SquirrelMail/1.4.4

Hi,

I discovered and fixed an issue with GapContent. The positions are
expected to be stored sorted, but they weren't. The methods
setPositionsInRange and adjustPositionsInRange were messing this up.

I also added two private methods that could be used for debugging. I
regularily need something like this.

2005-10-05  Roman Kennke  <address@hidden>

        * javax/swing/text/GapContent.java
        (setPositionsInRange): Changed check for interval end to actually
        check for the position offsets.
        (adjustPositionsInRange): Changed check for interval end to actually
        check for the position offsets.
        (dump): New method for debugging.
        (dumpPositions): New method for debugging.

/Roman

Attachment: GapContent.diff
Description: Text Data


reply via email to

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