mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 12:46:00 +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
1 changed files with 1 additions and 1 deletions
2
links.c
2
links.c
|
@ -134,7 +134,7 @@ zathura_link_evaluate(zathura_t* zathura, zathura_link_t* link)
|
||||||
switch (link->type) {
|
switch (link->type) {
|
||||||
case ZATHURA_LINK_GOTO_DEST:
|
case ZATHURA_LINK_GOTO_DEST:
|
||||||
if (link->target.destination_type != ZATHURA_LINK_DESTINATION_UNKNOWN) {
|
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_document_set_scale(zathura->document,
|
||||||
zathura_correct_scale_value(zathura->ui.session, link->target.scale));
|
zathura_correct_scale_value(zathura->ui.session, link->target.scale));
|
||||||
render_all(zathura);
|
render_all(zathura);
|
||||||
|
|
Loading…
Reference in a new issue