3c52250ee3
- Update to 0.9.18.2: * Document minimum required Exiv2 version. * Fix build failure with upcoming Exiv2 1.0. * Remove spurious zero-width spaces from the Ukrainian manual page. * Improve the test suite - Add upstream changes: * 0001-pdf-backend-fix-compat-with-Poppler-22.02.patch * 0002-main-use-pdf-link-Destination-copy-constructor.patch * 0003-pdf-backend-fix-compat-with-Poppler-22.02.patch * 0004-pdf-backend-simplify-Poppler-22.03-compat-code.patch OBS-URL: https://build.opensuse.org/request/show/962111 OBS-URL: https://build.opensuse.org/package/show/Publishing/pdf2djvu?expand=0&rev=71
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 9e51203dd9db9a8c1332fc8a9a1d49334dcd80a6 Mon Sep 17 00:00:00 2001
|
|
From: Jakub Wilk <jwilk@jwilk.net>
|
|
Date: Thu, 17 Feb 2022 00:26:41 +0100
|
|
Subject: [PATCH 2/3] pdf-backend: fix compat with Poppler > 22.02.
|
|
|
|
Fixes:
|
|
|
|
pdf-backend.cc:152:3: error: no matching constructor for initialization of '::PDFDoc'
|
|
/usr/include/poppler/PDFDoc.h:132:14: note: candidate constructor not viable: no known conversion from 'nullptr_t' to 'const std::optional<GooString>' for 2nd argument
|
|
|
|
https://cgit.freedesktop.org/poppler/poppler/commit/?id=4f2abd3efa1ee013
|
|
---
|
|
pdf-backend.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/pdf-backend.cc b/pdf-backend.cc
|
|
index c74053d..ba85da2 100644
|
|
--- a/pdf-backend.cc
|
|
+++ b/pdf-backend.cc
|
|
@@ -149,7 +149,7 @@ public:
|
|
};
|
|
|
|
pdf::Document::Document(const std::string &file_name)
|
|
-: ::PDFDoc(unique_ptr_adapter<pdf::String>(new pdf::String(file_name.c_str())), nullptr, nullptr)
|
|
+: ::PDFDoc(unique_ptr_adapter<pdf::String>(new pdf::String(file_name.c_str())))
|
|
{
|
|
if (!this->isOk())
|
|
throw LoadError();
|
|
--
|
|
2.35.1
|
|
|