View | Details | Raw Unified | Return to bug 246532 | Differences between
and this patch

Collapse All | Expand All

(-)files/patch-zathura-pdf-mupdf_index.c (+11 lines)
Line 0 Link Here
1
--- zathura-pdf-mupdf/index.c.orig	2020-05-18 10:56:42 UTC
2
+++ zathura-pdf-mupdf/index.c
3
@@ -67,7 +67,7 @@ build_index(fz_context* ctx, fz_document* document, fz
4
 
5
       type                    = ZATHURA_LINK_GOTO_DEST;
6
       target.destination_type = ZATHURA_LINK_DESTINATION_XYZ;
7
-      target.page_number      = fz_resolve_link(ctx, document, outline->uri, &x, &y);
8
+      target.page_number      = fz_page_number_from_location(ctx, document, fz_resolve_link(ctx, document, outline->uri, &x, &y));
9
       target.left  = x;
10
       target.top   = y;
11
       target.zoom  = 0.0;
(-)files/patch-zathura-pdf-mupdf_links.c (+15 lines)
Line 0 Link Here
1
--- zathura-pdf-mupdf/links.c.orig	2020-05-18 11:05:39 UTC
2
+++ zathura-pdf-mupdf/links.c
3
@@ -56,8 +56,10 @@ pdf_page_links_get(zathura_page_t* page, void* data, z
4
 
5
       type                    = ZATHURA_LINK_GOTO_DEST;
6
       target.destination_type = ZATHURA_LINK_DESTINATION_XYZ;
7
-      target.page_number      = fz_resolve_link(mupdf_document->ctx,
8
-          mupdf_document->document, link->uri, &x, &y);
9
+      target.page_number      =
10
+	      fz_page_number_from_location(mupdf_document->ctx,
11
+			      mupdf_document->document, fz_resolve_link(mupdf_document->ctx,
12
+          mupdf_document->document, link->uri, &x, &y));
13
       target.left  = x;
14
       target.top   = y;
15
       target.zoom  = 0.0;

Return to bug 246532