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
This commit is contained in:
Audrius Meskauskas 2005-04-19 07:51:38 +02:00 committed by Michael Koch
parent ea899effee
commit 3419f465cf
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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>
* javax/swing/CellRendererPane.java:

View File

@ -469,8 +469,8 @@ public class JTextArea extends JTextComponent
try
{
doc.remove(start, end);
doc.insertString(start, text, null);
doc.remove(start, end - start);
doc.insertString(start, text, null);
}
catch (BadLocationException e)
{