Skip to content

Commit

Permalink
zoom from mupdf links was 100x too big (fixes #3894)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Kowalczyk committed Dec 8, 2023
1 parent ad3d58e commit c67b4f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EngineMupdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2882,6 +2882,7 @@ void HandleLinkMupdf(EngineMupdf* e, IPageDestination* dest, ILinkHandler* linkH
float x = isnan(ldest.x) ? 0.f : ldest.x;
float y = isnan(ldest.y) ? 0.f : ldest.y;
float zoom = isnan(ldest.zoom) ? 0.f : ldest.zoom;
zoom = zoom / 100; // mupdf uses 100 as 100% zoom, we use 1
float w = isnan(ldest.w) ? DEST_USE_DEFAULT : ldest.w;
float h = isnan(ldest.y) ? DEST_USE_DEFAULT : ldest.y;

Expand Down

0 comments on commit c67b4f8

Please sign in to comment.