Hi,

this unbreaks pdf2djvu with poppler-0.76.

To be committed right after the poppler update.

ok?

Index: patches/patch-pdf2djvu_cc
===================================================================
RCS file: patches/patch-pdf2djvu_cc
diff -N patches/patch-pdf2djvu_cc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-pdf2djvu_cc   4 May 2019 15:55:58 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+Fix build with poppler-0.76.
+
+Index: pdf2djvu.cc
+--- pdf2djvu.cc.orig
++++ pdf2djvu.cc
+@@ -87,7 +87,7 @@ static int get_page_for_goto_link(pdf::link::GoTo *got
+     if (dest->isPageRef())
+     {
+       Ref pageref = dest->getPageRef();
+-      page = catalog->findPage(pageref.num, pageref.gen);
++      page = catalog->findPage(pageref);
+     }
+     else
+       page = dest->getPageNum();

Reply via email to