# HG changeset patch # User peter1138 # Date 1199212531 0 # Node ID b45860add89b8fb6958d86b886f7c13fdd8b5c4a # Parent 4d10031a5495206ab0ca5d27bb165c0356594726 (svn r11739) -Fix [FS#1609]: Set the new scroll position after zooming in instead of before, as the zoom will cancel it out. diff -r 4d10031a5495 -r b45860add89b src/main_gui.cpp --- a/src/main_gui.cpp Tue Jan 01 18:12:17 2008 +0000 +++ b/src/main_gui.cpp Tue Jan 01 18:35:31 2008 +0000 @@ -2231,8 +2231,8 @@ case 'Z': { Point pt = GetTileBelowCursor(); if (pt.x != -1) { + if (e->we.keypress.keycode == 'Z') MaxZoomInOut(ZOOM_IN, w); ScrollMainWindowTo(pt.x, pt.y); - if (e->we.keypress.keycode == 'Z') MaxZoomInOut(ZOOM_IN, w); } break; }