"Assertion `c.x < width' failed" when loading smaller map in editor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Low
|
Unassigned |
Bug Description
Found in r7578 on Ubuntu 14.04.
Steps to reproduce:
- Go to the editor, load a relatively large map (or create a new, empty one).
- Move your screen to some coordinates with large numbers (e.g. 120|120). I do not know which point causes the problem.
- Within the editor, load a small map (e.g. Crater, 64x64).
Result:
Widelands crashes with the following message in the terminal:
widelands: ../src/
Program received signal SIGABRT, Aborted.
Backtrace attached.
It is interesting to notice that if the loaded map is large enough, the player sees the area around the old coordinates (120|120 in the above example), and not around (0|0) (default when the editor is started for the first time). I am not sure if we have always had this behavior.
Related branches
- Miroslav Remák: Approve
- kaputtnik (community): Approve (testing)
-
Diff: 18 lines (+8/-0)1 file modifiedsrc/editor/editorinteractive.cc (+8/-0)
Changed in widelands: | |
milestone: | none → build19-rc1 |
Changed in widelands: | |
status: | Confirmed → In Progress |
assignee: | nobody → GunChleoc (gunchleoc) |
Changed in widelands: | |
status: | In Progress → Fix Committed |
assignee: | GunChleoc (gunchleoc) → nobody |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
I had the same behaviour