mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 23:24:24 +01:00
Do not adjust scale if given scale is not positive
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
e0753ce954
commit
9929d34a76
2
links.c
2
links.c
@ -134,7 +134,7 @@ zathura_link_evaluate(zathura_t* zathura, zathura_link_t* link)
|
||||
switch (link->type) {
|
||||
case ZATHURA_LINK_GOTO_DEST:
|
||||
if (link->target.destination_type != ZATHURA_LINK_DESTINATION_UNKNOWN) {
|
||||
if (link->target.scale != 0 && link_zoom) {
|
||||
if (link->target.scale >= DBL_EPSILON && link_zoom) {
|
||||
zathura_document_set_scale(zathura->document,
|
||||
zathura_correct_scale_value(zathura->ui.session, link->target.scale));
|
||||
render_all(zathura);
|
||||
|
Loading…
Reference in New Issue
Block a user