google-code-export / piccolo2d

Automatically exported from code.google.com/p/piccolo2d
2 stars 1 forks source link

Missplaced underlines in PStyledText #260

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by jless...@gmx.de on 29 Dec 2014 at 7:28

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by heue...@gmail.com on 29 Dec 2014 at 9:43

GoogleCodeExporter commented 9 years ago

Original comment by heue...@gmail.com on 29 Dec 2014 at 11:39

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

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

Original comment by heue...@gmail.com on 30 Dec 2014 at 3:33