Fixed zoom function

This commit repairs the zoom function that did not work through the
automatic adjust patch.
This commit is contained in:
Moritz Lipp 2010-04-12 19:30:48 +02:00
parent e5afcbd01e
commit cc3bb4d494

View File

@ -2658,6 +2658,8 @@ bcmd_scroll(char* buffer, Argument* argument)
void void
bcmd_zoom(char* buffer, Argument* argument) bcmd_zoom(char* buffer, Argument* argument)
{ {
Zathura.Global.adjust_mode = ADJUST_NONE;
if(argument->n == ZOOM_IN) if(argument->n == ZOOM_IN)
{ {
if((Zathura.PDF.scale + ZOOM_STEP) <= ZOOM_MAX) if((Zathura.PDF.scale + ZOOM_STEP) <= ZOOM_MAX)