bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/26888] JTextArea/PlainDocument - removing text with line-brea


From: thebohemian at gmx dot net
Subject: [Bug swing/26888] JTextArea/PlainDocument - removing text with line-breaks makes component unusable
Date: 27 Mar 2006 22:31:47 -0000


------- Comment #1 from thebohemian at gmx dot net  2006-03-27 22:31 -------
An empty PlainDocument.dump() prints the following:

<paragraph>
  <content>
    [0,1][
]

After inserting "a" at offset 0 the same method prints:
<paragraph>
  <content>
    [0,2][a
]
  <content>
    [1,2][
]

Which is wrong. After doing a manual plainDocument.reindex() the correct result
is:
<paragraph>
  <content>
    [0,2][a
]

A fix for this PR should handle this problem, too.


-- 

thebohemian at gmx dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-03-27 22:31:46
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26888





reply via email to

[Prev in Thread] Current Thread [Next in Thread]