mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 21:44:20 +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
@ -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 New Issue
Block a user