(svn r11739) -Fix [FS#1609]: Set the new scroll position after zooming in instead of before, as the zoom will cancel it out.

This commit is contained in:
peter1138 2008-01-01 18:35:31 +00:00
parent 47d23eb003
commit c94a6b8c78
1 changed files with 1 additions and 1 deletions

View File

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