diff options
author | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2020-05-19 07:25:54 +0000 |
---|---|---|
committer | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2020-05-19 07:25:54 +0000 |
commit | 23b2a98cc69071016a2484ea4481b0ba2b43dcad (patch) | |
tree | 15bad2d812c915019194157b3d5a966c59f52d6e /graphics/zathura-pdf-mupdf | |
parent | 63b29b0cc853831d0115a34c8cd0a18f0fd37dd4 (diff) |
Notes
Diffstat (limited to 'graphics/zathura-pdf-mupdf')
-rw-r--r-- | graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_index.c | 11 | ||||
-rw-r--r-- | graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_links.c | 15 |
2 files changed, 26 insertions, 0 deletions
diff --git a/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_index.c b/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_index.c new file mode 100644 index 000000000000..576e4ea1afb4 --- /dev/null +++ b/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_index.c @@ -0,0 +1,11 @@ +--- zathura-pdf-mupdf/index.c.orig 2020-05-18 10:56:42 UTC ++++ zathura-pdf-mupdf/index.c +@@ -67,7 +67,7 @@ build_index(fz_context* ctx, fz_document* document, fz + + type = ZATHURA_LINK_GOTO_DEST; + target.destination_type = ZATHURA_LINK_DESTINATION_XYZ; +- target.page_number = fz_resolve_link(ctx, document, outline->uri, &x, &y); ++ target.page_number = fz_page_number_from_location(ctx, document, fz_resolve_link(ctx, document, outline->uri, &x, &y)); + target.left = x; + target.top = y; + target.zoom = 0.0; diff --git a/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_links.c b/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_links.c new file mode 100644 index 000000000000..9f95b56ab1a7 --- /dev/null +++ b/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_links.c @@ -0,0 +1,15 @@ +--- zathura-pdf-mupdf/links.c.orig 2020-05-18 11:05:39 UTC ++++ zathura-pdf-mupdf/links.c +@@ -56,8 +56,10 @@ pdf_page_links_get(zathura_page_t* page, void* data, z + + type = ZATHURA_LINK_GOTO_DEST; + target.destination_type = ZATHURA_LINK_DESTINATION_XYZ; +- target.page_number = fz_resolve_link(mupdf_document->ctx, +- mupdf_document->document, link->uri, &x, &y); ++ target.page_number = ++ fz_page_number_from_location(mupdf_document->ctx, ++ mupdf_document->document, fz_resolve_link(mupdf_document->ctx, ++ mupdf_document->document, link->uri, &x, &y)); + target.left = x; + target.top = y; + target.zoom = 0.0; |