[Patch] javax.swing.JTextArea
Michael Koch
konqueror@gmx.de
Tue Apr 19 05:57:00 GMT 2005
Hi list,
I just merged a fix for javax.swing.JTextArea.replaceRange from GNU
classpath to HEAD.
Michael
2005-04-19 Audrius Meskauskas <audriusa@bluewin.ch>
* javax/swing/JTextArea.java (replaceRange):
Fixing doc.remove(start, length) misinterpretation.
-------------- next part --------------
Index: javax/swing/JTextArea.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/JTextArea.java,v
retrieving revision 1.5
diff -u -r1.5 JTextArea.java
--- javax/swing/JTextArea.java 17 Feb 2005 07:48:52 -0000 1.5
+++ javax/swing/JTextArea.java 19 Apr 2005 05:50:25 -0000
@@ -469,8 +469,8 @@
try
{
- doc.remove(start, end);
- doc.insertString(start, text, null);
+ doc.remove(start, end - start);
+ doc.insertString(start, text, null);
}
catch (BadLocationException e)
{
More information about the Java-patches
mailing list