[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: swing
fixlet
Kaffe CVS
cvs-commits at kaffe.org
Wed Mar 2 14:37:13 PST 2005
PatchSet 5613
Date: 2005/03/02 22:26:39
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Resynced with GNU Classpath: swing fixlet
2005-03-02 Dalibor Topic <robilad at kaffe.org>
Resynced with GNU Classpath.
2005-02-26 Audrius Meskauskas <audriusa at bluewin.ch>
* javax/swing/JTextArea.java (replaceRange):
Fixing doc.remove(start, length) misinterpretation.
Members:
ChangeLog:1.3658->1.3659
libraries/javalib/javax/swing/JTextArea.java:1.7->1.8
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3658 kaffe/ChangeLog:1.3659
--- kaffe/ChangeLog:1.3658 Wed Mar 2 22:14:32 2005
+++ kaffe/ChangeLog Wed Mar 2 22:26:39 2005
@@ -2,6 +2,15 @@
Resynced with GNU Classpath.
+ 2005-02-26 Audrius Meskauskas <audriusa at bluewin.ch>
+
+ * javax/swing/JTextArea.java (replaceRange):
+ Fixing doc.remove(start, length) misinterpretation.
+
+2005-03-02 Dalibor Topic <robilad at kaffe.org>
+
+ Resynced with GNU Classpath.
+
2005-02-26 Roman Kennke <roman at ontographics.com>
* javax/swing/plaf/basic/BasicListUI
Index: kaffe/libraries/javalib/javax/swing/JTextArea.java
diff -u kaffe/libraries/javalib/javax/swing/JTextArea.java:1.7 kaffe/libraries/javalib/javax/swing/JTextArea.java:1.8
--- kaffe/libraries/javalib/javax/swing/JTextArea.java:1.7 Sat Feb 19 15:14:18 2005
+++ kaffe/libraries/javalib/javax/swing/JTextArea.java Wed Mar 2 22:26:43 2005
@@ -469,12 +469,13 @@
try
{
- doc.remove(start, end);
- doc.insertString(start, text, null);
+ doc.remove(start, end - start);
+ doc.insertString(start, text, null);
}
catch (BadLocationException e)
{
- // This cannot happen as we check offset above.
+ // This cannot happen as we check offset above.
+ throw new Error("Please report a bug", e);
}
}
}
More information about the kaffe
mailing list