(svn r11739) -Fix [FS#1609]: Set the new scroll position after zooming in instead of before, as the zoom will cancel it out.
authorpeter1138
Tue, 01 Jan 2008 18:35:31 +0000
changeset 8176 b45860add89b
parent 8175 4d10031a5495
child 8177 d3b340b0bdfe
(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
--- 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;
 			}