r24599 by jghali - #16536: Page::getFormWidgets() returns unique_ptr in poppler 21.04.0

scribus-commit scribus-commit at lists.scribus.net
Sun Apr 4 21:37:04 UTC 2021


Author: jghali
Date: Sun Apr  4 21:37:04 2021
New Revision: 24599

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24599
Log:
#16536: Page::getFormWidgets() returns unique_ptr in poppler 21.04.0

Modified:
    trunk/Scribus/scribus/plugins/import/pdf/slaoutput.h

Modified: trunk/Scribus/scribus/plugins/import/pdf/slaoutput.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24599&path=/trunk/Scribus/scribus/plugins/import/pdf/slaoutput.h
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pdf/slaoutput.h	(original)
+++ trunk/Scribus/scribus/plugins/import/pdf/slaoutput.h	Sun Apr  4 21:37:04 2021
@@ -379,7 +379,11 @@
 	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;




More information about the scribus-commit mailing list