summaryrefslogtreecommitdiffstats
path: root/gis/gdal/poppler.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gis/gdal/poppler.patch')
-rw-r--r--gis/gdal/poppler.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/gis/gdal/poppler.patch b/gis/gdal/poppler.patch
new file mode 100644
index 0000000000..59e9c5b5b3
--- /dev/null
+++ b/gis/gdal/poppler.patch
@@ -0,0 +1,12 @@
+diff -Naur gdal-2.2.4.orig/frmts/pdf/pdfobject.cpp gdal-2.2.4/frmts/pdf/pdfobject.cpp
+--- gdal-2.2.4.orig/frmts/pdf/pdfobject.cpp 2018-03-19 14:26:54.000000000 +0100
++++ gdal-2.2.4/frmts/pdf/pdfobject.cpp 2019-10-15 06:58:41.248215000 +0200
+@@ -1055,7 +1055,7 @@
+ {
+ if (GetType() == PDFObjectType_String)
+ {
+- GooString* gooString = m_po->getString();
++ const GooString* gooString = m_po->getString();
+ return (osStr = GDALPDFGetUTF8StringFromBytes(reinterpret_cast<const GByte*>(gooString->getCString()),
+ static_cast<int>(gooString->getLength())));
+ }