summaryrefslogtreecommitdiff
path: root/graphics/openfx-arena/files/patch-Extra_ReadPDF.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/openfx-arena/files/patch-Extra_ReadPDF.cpp')
-rw-r--r--graphics/openfx-arena/files/patch-Extra_ReadPDF.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/openfx-arena/files/patch-Extra_ReadPDF.cpp b/graphics/openfx-arena/files/patch-Extra_ReadPDF.cpp
new file mode 100644
index 000000000000..7213735c54d8
--- /dev/null
+++ b/graphics/openfx-arena/files/patch-Extra_ReadPDF.cpp
@@ -0,0 +1,13 @@
+Fix build with poppler 0.83
+
+--- Extra/ReadPDF.cpp.orig 2020-01-18 15:54:18 UTC
++++ Extra/ReadPDF.cpp
+@@ -134,7 +134,7 @@ false
+ if (!popplerData.empty()) {
+ struct stat sb;
+ if (stat(popplerData.c_str(), &sb) == 0 && S_ISDIR(sb.st_mode)) {
+- globalParams = new GlobalParams(popplerData.c_str());
++ globalParams = std::unique_ptr<GlobalParams>(new GlobalParams(popplerData.c_str()));
+ }
+ }
+ }