Merge lp:~widelands-dev/widelands/bug-1818494-workaround-math-clamp-zoom-everywhere into lp:widelands
Proposed by
GunChleoc
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 9035 | ||||
Proposed branch: | lp:~widelands-dev/widelands/bug-1818494-workaround-math-clamp-zoom-everywhere | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
22 lines (+4/-1) 1 file modified
src/wui/mapview.cc (+4/-1) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/bug-1818494-workaround-math-clamp-zoom-everywhere | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
hessenfarmer | test | Approve | |
Review via email: mp+365321@code.launchpad.net |
Commit message
Use math::clamp to ensure that zoom will stay within range.
Description of the change
I'm no sure whether this actually fixes or only masks the bug. We might only want this in the Build 20 branch, hoping that it will prevent crashes there.
To post a comment you must log in.
Continuous integration builds have changed state:
Travis build 4661. State: passed. Details: https:/ /travis- ci.org/ widelands/ widelands/ builds/ 513789175. /ci.appveyor. com/project/ widelands- dev/widelands/ build/_ widelands_ dev_widelands_ bug_1818494_ workaround_ math_clamp_ zoom_everywhere -4448.
Appveyor build 4448. State: success. Details: https:/