Incorrect formatting for consecutive newlines with FTSimpleLayout
Bug #1351787 reported by
David McFarland
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ftgl (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
FTSimpleLayout doesn't handle consecutive \n properly. Rendering the string "foo\n\nfoo\nfoo" will result in:
foo
?foo?foo
foo
foo
The problem seems to be breakCharCount being -1 in this case, and OutputWrapped treats len < 0 as a request to render the rest of the string.
To post a comment you must log in.
The attachment "patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]