SHA256
1
0
forked from pool/scribus
scribus/0003-Page-getFormWidgets-returns-unique_ptr-in-poppler-21.04.0.patch
Christophe Giboudeaux f4e9779be3 Accepting request 883539 from home:alarrosa:branches:KDE:Extra
- Add patch from upstream to build with poppler 21.04.0:
  * 0003-Page-getFormWidgets-returns-unique_ptr-in-poppler-21.04.0.patch

OBS-URL: https://build.opensuse.org/request/show/883539
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/scribus?expand=0&rev=65
2021-04-07 16:38:23 +00:00

28 lines
1.0 KiB
Diff

From c62844064cd6d85802d21e188b0f479463e22095 Mon Sep 17 00:00:00 2001
From: Jean Ghali <jghali@libertysurf.fr>
Date: Sun, 4 Apr 2021 21:37:04 +0000
Subject: [PATCH] #16536: Page::getFormWidgets() returns unique_ptr in poppler
21.04.0
git-svn-id: svn://scribus.net/trunk/Scribus@24599 11d20701-8431-0410-a711-e3c959e3b870
---
scribus/plugins/import/pdf/slaoutput.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scribus/plugins/import/pdf/slaoutput.h b/scribus/plugins/import/pdf/slaoutput.h
index 66c34203ae..cb191b1023 100644
--- a/scribus/plugins/import/pdf/slaoutput.h
+++ b/scribus/plugins/import/pdf/slaoutput.h
@@ -379,7 +379,11 @@ class SlaOutputDev : public OutputDev
Catalog *catalog {nullptr};
SplashFontEngine *m_fontEngine {nullptr};
SplashFont *m_font {nullptr};
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(21, 4, 0)
+ std::unique_ptr<FormPageWidgets> m_formWidgets;
+#else
FormPageWidgets *m_formWidgets {nullptr};
+#endif
QHash<QString, QList<int> > m_radioMap;
QHash<int, PageItem*> m_radioButtons;
int m_actPage;