Message boxes with long unbreakable strings show empty
Bug #1801208 reported by
Arty
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When a message box text contains a string that doesn't fit into one line but can't be broken automatically, then the message box appears empty.
I already checked out what the issue is: MultilineTextarea does the anchor calculation with unsigned ints, so the anchor gets a huge positive value instead of the proper negative value, when an unbreakable string is too long. Then the drawing routine draws the empty space out there.
Probably not be the only place where such a calculation goes wrong. I'll check it out thoroughly and fix it.
Related branches
lp:~widelands-dev/widelands/bugfix-1801208
- GunChleoc: Approve
-
Diff: 48 lines (+14/-4)2 files modifiedsrc/ui_basic/multilinetextarea.cc (+12/-3)
src/ui_basic/multilinetextarea.h (+2/-1)
Changed in widelands: | |
status: | New → In Progress |
Changed in widelands: | |
status: | In Progress → Fix Committed |
Changed in widelands: | |
status: | In Progress → Fix Committed |
assignee: | Arty (artydent) → nobody |
To post a comment you must log in.
Expected behavior at the moment should be a truncated string - the font renderer can't handle breaking of longs strings without blank space yet. I'm working on that problem, but that will be a big branch.