piccolo2d / piccolo2d.java

Structured 2D Graphics Framework
http://piccolo2d.org
Other
51 stars 14 forks source link

Missplaced underlines in PStyledText #260

Closed mro closed 9 years ago

mro commented 9 years ago

Originally reported on Google Code with 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.

Reported by jlessner@gmx.de on 2014-12-29 19:28:54


mro commented 9 years ago

Reported by heuermh on 2014-12-29 21:43:32

mro commented 9 years ago

Reported by heuermh on 2014-12-29 23:39:38

mro commented 9 years ago
Patch applied in revision 1272, thanks!

Please review and if looks ok, mark as Status: Verified

Reported by heuermh on 2014-12-30 03:33:43