[Top][All Lists]
[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: |
Thu, 29 Sep 2005 19:33:29 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.4 |
This fixes the GapContent for a weird bordercase that Tony filed as
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24105
I also added this to the Mauve testsuite for GapContent.
2005-09-29 Roman Kennke <address@hidden>
Fixes Bug #24105
* javax/swing/text/GapContent.java
(GapContentPosition.getOffset): Adjusted assert statement.
(shiftGap): Adjusted index in getPositionsInRange call. Call
resetMarksAtZero if gapStart has moved to 0.
(replace): Call shiftGap and shiftGapEndUp only if necessary.
(resetMarksAtZero): New method.
/Roman
GapContent.diff
Description: Text Data