mirror of git://gcc.gnu.org/git/gcc.git
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:
parent
ea899effee
commit
3419f465cf
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue