(svn r19813) -Fix (r19807): initialising viewports kinda failed

This commit is contained in:
rubidium 2010-05-13 10:00:51 +00:00
parent 398418b8fa
commit a2d6961ab3
1 changed files with 4 additions and 1 deletions

View File

@ -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);