diff options
author | Roman Kennke <roman@kennke.org> | 2005-05-06 06:03:17 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2005-05-06 06:03:17 +0000 |
commit | 9dc83af902a99a589dfb8c05c0f16e1a5bdf812d (patch) | |
tree | 247bf4981adfa1e88ee56d2f591e9288e3778b8c /libjava/javax/swing/text/Utilities.java | |
parent | 876f4e199c63fce3ae79bde6a0b76b8057836f62 (diff) | |
download | gcc-9dc83af902a99a589dfb8c05c0f16e1a5bdf812d.zip gcc-9dc83af902a99a589dfb8c05c0f16e1a5bdf812d.tar.gz gcc-9dc83af902a99a589dfb8c05c0f16e1a5bdf812d.tar.bz2 |
2005-05-06 Roman Kennke <roman@kennke.org>
* javax/swing/text/PlainView.java
(drawUnselectedText): Call Utilities.drawTabbedText() with correct
offset parameter.
* javax/swing/text/Utilities.java
(drawTabbedText): Initilialize local variable pos correctly.
2005-05-06 Roman Kennke <roman@kennke.org>
* javax/swing/text/AbstractDocument.java
(LeafElement): Made start and end package private fields for
effective reindexing.
* javax/swing/text/PlainDocument.java
(constructor): The field rootElement is always BranchElement,
so we handle it as such.
(removeUpdate): Rewritten reindexing for removeUpdate so that
the actual removal is taken into account.
2005-05-06 Roman Kennke <roman@kennke.org>
* javax/swing/text/GapContent.java:
Removed debugging output stuff, which I accidentally left in.
2005-05-06 Roman Kennke <roman@kennke.org>
* javax/swing/text/GapContent.java:
Implemented a real GapContent. Only the public methods have
been implemented so far and still no UndoableEdit support.
From-SVN: r99300
Diffstat (limited to 'libjava/javax/swing/text/Utilities.java')
-rw-r--r-- | libjava/javax/swing/text/Utilities.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/javax/swing/text/Utilities.java b/libjava/javax/swing/text/Utilities.java index c55f48e..7904701 100644 --- a/libjava/javax/swing/text/Utilities.java +++ b/libjava/javax/swing/text/Utilities.java @@ -92,7 +92,7 @@ public class Utilities int ascent = metrics.getAscent(); int pixelWidth = 0; - int pos = 0; + int pos = s.offset; int len = 0; for (int offset = s.offset; offset < (s.offset + s.count); ++offset) |