summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main_gui.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index 6a5781897..dc118abf5 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -136,7 +136,10 @@ bool DoZoomInOutWindow(ZoomStateChange how, Window *w)
vp = w->viewport;
switch (how) {
- case ZOOM_NONE: NOT_REACHED();
+ case ZOOM_NONE:
+ /* On initialisation of the viewport we don't do anything. */
+ break;
+
case ZOOM_IN:
if (vp->zoom == ZOOM_LVL_MIN) return false;
vp->zoom = (ZoomLevel)((int)vp->zoom - 1);