aboutsummaryrefslogtreecommitdiff
path: root/libjava/javax/swing/text/PlainView.java
diff options
context:
space:
mode:
authorRoman Kennke <roman@kennke.org>2005-05-06 06:03:17 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2005-05-06 06:03:17 +0000
commit9dc83af902a99a589dfb8c05c0f16e1a5bdf812d (patch)
tree247bf4981adfa1e88ee56d2f591e9288e3778b8c /libjava/javax/swing/text/PlainView.java
parent876f4e199c63fce3ae79bde6a0b76b8057836f62 (diff)
downloadgcc-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/PlainView.java')
-rw-r--r--libjava/javax/swing/text/PlainView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/javax/swing/text/PlainView.java b/libjava/javax/swing/text/PlainView.java
index c852c1d..fb6af4e 100644
--- a/libjava/javax/swing/text/PlainView.java
+++ b/libjava/javax/swing/text/PlainView.java
@@ -148,7 +148,7 @@ public class PlainView extends View
g.setColor(unselectedColor);
Segment segment = new Segment();
getDocument().getText(p0, p1 - p0, segment);
- return Utilities.drawTabbedText(segment, x, y, g, this, 0);
+ return Utilities.drawTabbedText(segment, x, y, g, this, segment.offset);
}
public void paint(Graphics g, Shape s)