diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-05-18 00:10:51 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-05-18 00:10:51 +0100 |
commit | eccb70a7f91b2d22582587f26d1a28bb31408b45 (patch) | |
tree | 3223e1fd54201bcf4ebecac6fbe87361cbe643e2 /app-text/pdf2djvu/files/pdf2djvu-0.9.12-poppler-0.76-3.patch | |
parent | a2810985afabcc31d3eace5e61d8ea25b852ba17 (diff) |
gentoo resync : 18.05.2019
Diffstat (limited to 'app-text/pdf2djvu/files/pdf2djvu-0.9.12-poppler-0.76-3.patch')
-rw-r--r-- | app-text/pdf2djvu/files/pdf2djvu-0.9.12-poppler-0.76-3.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/app-text/pdf2djvu/files/pdf2djvu-0.9.12-poppler-0.76-3.patch b/app-text/pdf2djvu/files/pdf2djvu-0.9.12-poppler-0.76-3.patch new file mode 100644 index 000000000000..b3d8cfad6df2 --- /dev/null +++ b/app-text/pdf2djvu/files/pdf2djvu-0.9.12-poppler-0.76-3.patch @@ -0,0 +1,38 @@ +From 8325358a9769e8aa33693fc5ea2ac771dd82716f Mon Sep 17 00:00:00 2001 +From: Jakub Wilk <jwilk@jwilk.net> +Date: Tue, 23 Apr 2019 08:23:46 +0200 +Subject: [PATCH] pdf-backend: simplify find_page() implementation. + +--- + pdf-backend.cc | 16 +++++----------- + 1 file changed, 5 insertions(+), 11 deletions(-) + +diff --git a/pdf-backend.cc b/pdf-backend.cc +index f6f5267..a94383e 100644 +--- a/pdf-backend.cc ++++ b/pdf-backend.cc +@@ -631,19 +631,13 @@ const char * pdf::get_c_string(const pdf::String *str) + } + #endif + +-template <typename C> static auto find_page_impl(C *catalog, pdf::Ref pgref) -> decltype(catalog->findPage(0, 0)) +-{ +- return catalog->findPage(pgref.num, pgref.gen); +-} +- +-template <typename C> static auto find_page_impl(C *catalog, pdf::Ref pgref) -> decltype(catalog->findPage(pgref)) +-{ +- return catalog->findPage(pgref); +-} +- + int pdf::find_page(pdf::Catalog *catalog, pdf::Ref pgref) + { +- return find_page_impl<pdf::Catalog>(catalog, pgref); ++#if POPPLER_VERSION >= 7600 ++ return catalog->findPage(pgref); ++#else ++ return catalog->findPage(pgref.num, pgref.gen); ++#endif + } + + // vim:ts=2 sts=2 sw=2 et |