Commit 3419f465 by Audrius Meskauskas Committed by Michael Koch

JTextArea.java (replaceRange): Fixing doc.remove(start, length) misinterpretation.

2005-04-19  Audrius Meskauskas  <audriusa@bluewin.ch>

	* javax/swing/JTextArea.java (replaceRange):
	Fixing doc.remove(start, length) misinterpretation.

From-SVN: r98381
parent ea899eff
2005-04-19 Audrius Meskauskas <audriusa@bluewin.ch>
* javax/swing/JTextArea.java (replaceRange):
Fixing doc.remove(start, length) misinterpretation.
2005-04-19 Roman Kennke <roman@ontographics.com> 2005-04-19 Roman Kennke <roman@ontographics.com>
* javax/swing/CellRendererPane.java: * javax/swing/CellRendererPane.java:
......
...@@ -469,8 +469,8 @@ public class JTextArea extends JTextComponent ...@@ -469,8 +469,8 @@ public class JTextArea extends JTextComponent
try try
{ {
doc.remove(start, end); doc.remove(start, end - start);
doc.insertString(start, text, null); doc.insertString(start, text, null);
} }
catch (BadLocationException e) catch (BadLocationException e)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment