From c94a6b8c78a4b8dc2498c487b482ef85a0208bc2 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 1 Jan 2008 18:35:31 +0000 Subject: [PATCH] (svn r11739) -Fix [FS#1609]: Set the new scroll position after zooming in instead of before, as the zoom will cancel it out. --- src/main_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main_gui.cpp b/src/main_gui.cpp index f5fb8bf354..cf4ef3d543 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -2231,8 +2231,8 @@ static void MainWindowWndProc(Window *w, WindowEvent *e) case 'Z': { Point pt = GetTileBelowCursor(); if (pt.x != -1) { - ScrollMainWindowTo(pt.x, pt.y); if (e->we.keypress.keycode == 'Z') MaxZoomInOut(ZOOM_IN, w); + ScrollMainWindowTo(pt.x, pt.y); } break; }