From a2d6961ab3c9aa43b95dfe9fa4699d290e5627e2 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 13 May 2010 10:00:51 +0000 Subject: [PATCH] (svn r19813) -Fix (r19807): initialising viewports kinda failed --- src/main_gui.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 6a5781897e..dc118abf58 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);