1
0
Fork 0

(svn r7329) -Fix (r7157): Invalid viewport position on quick zoom

release/0.5
KUDr 2006-12-03 13:40:16 +00:00
parent 306204c71d
commit 3f3a14d24b
1 changed files with 4 additions and 1 deletions

View File

@ -881,7 +881,10 @@ bool DoZoomInOutWindow(int how, Window *w)
vp->virtual_height <<= 1;
break;
}
if (vp != NULL) { // the vp can be null when how == ZOOM_NONE
vp->virtual_left = WP(w, vp_d).scrollpos_x;
vp->virtual_top = WP(w, vp_d).scrollpos_y;
}
SetWindowDirty(w);
/* Update the windows that have zoom-buttons to perhaps disable their buttons */
SendWindowMessageClass(w->window_class, how, w->window_number, 0);