mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:16:00 +01:00
Fixed zoom function
This commit repairs the zoom function that did not work through the automatic adjust patch.
This commit is contained in:
parent
e5afcbd01e
commit
cc3bb4d494
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue