Issue 260 in piccolo2d: Missplaced underlines in PStyledText

0 views
Skip to first unread message

picc...@googlecode.com

unread,
Dec 29, 2014, 2:29:09 PM12/29/14
to piccol...@googlegroups.com
Status: New
Owner: ----

New issue 260 by jless...@gmx.de: Missplaced underlines in PStyledText
https://code.google.com/p/piccolo2d/issues/detail?id=260

What steps will reproduce the problem?
1. Create a PStyledText with a DefaultStyledDocument
2. Add a default-styled string to the document
3. Append a string with underline styling to the document

What is the expected output? What do you see instead?
I would expect the second string to be displayed with an underline. Instead
the first string is underlined. The line has the length of the second
string, i.e. the underline is missplaced

What version of the product are you using? On what operating system?
3.0, Windows 7

See the attached patch file for a fix.


Attachments:
PStyledText.java.underline.patch 605 bytes

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

picc...@googlecode.com

unread,
Dec 29, 2014, 4:43:43 PM12/29/14
to piccol...@googlegroups.com
Updates:
Status: Accepted
Owner: heue...@gmail.com
Labels: Type-Defect Priority-High Effort-Low OpSys-All
Toolkit-Piccolo2D.Java Component-Extras

Comment #1 on issue 260 by heue...@gmail.com: Missplaced underlines in
PStyledText
https://code.google.com/p/piccolo2d/issues/detail?id=260

(No comment was entered for this change.)

picc...@googlecode.com

unread,
Dec 29, 2014, 10:33:52 PM12/29/14
to piccol...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 260 by heue...@gmail.com: Missplaced underlines in
PStyledText
https://code.google.com/p/piccolo2d/issues/detail?id=260

Patch applied in revision 1272, thanks!

Please review and if looks ok, mark as Status: Verified
Reply all
Reply to author
Forward
0 new messages