libreoffice: patch for poppler 25.02

This commit is contained in:
Đoàn Trần Công Danh 2025-02-28 20:17:06 +07:00
parent 406151fe77
commit 716e3df463

View file

@ -0,0 +1,16 @@
diff --git a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
index ebed120..9b63559 100644
--- a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
@@ -110,7 +110,11 @@
/* Get data directory location */
#ifdef SYSTEM_POPPLER
+#if POPPLER_CHECK_VERSION(25, 0, 2)
+ const std::string datadir = "";
+#else
const char* datadir = nullptr;
+#endif
#else
/* Creates an absolute path to the poppler_data directory, by taking the path
* to the xpdfimport executable (provided in argv[0], and concatenating a