freebsd-ports/graphics/openfx-arena/files/patch-Extra_ReadPDF.cpp
Tobias C. Berner 90a4ed701a graphics/poppler: update to 0.84.0
Release 0.84.0:
        core:
         * Fix crash when converting from Unicode to ASCII-7
         * Splash::scaleImageYdXu: Protect against crash if srcWidth is too big
         * JBIG2Stream: fix potential crash in malformed documents
         * JBIG2Stream: fix leak in reset() if called several times
         * Internal code improvements

        utils:
         * pdfimages: Add error message if first page is larger then number of pages.
         * pdfinfo: Improved paper size recognition
         * pdfsig: Fix exit code when dumping signatures
         * pdftocairo: Error out when even/odd selects 0 pages
         * pdftohtml: Fix memory leak
         * pdftoppm: Add an option to scale before rotate
         * pdftoppm: Add -hide-annotations option
         * pdftoppm: Error out when even/odd selects 0 pages
         * pdftops: Improve -optimizecolorspace

        qt5:
         * Code cleanups

        glib:
         * Fix compiler warnings

Release 0.83.0
        core:
         * Improve when a file is recognized as Linearized
         * Improve const-ness of the code
         * Make code a bit more readable/maintanable
         * Fix uninitialized memory uses in broken files

        utils:
         * pdffonts: Make code a bit more readable/maintanable
         * pdftohtml: Make code a bit more readable/maintanable

        qt5:
         * Remove a bunch of unused internal functions
         * trUtf8 -> tr (less warnings)

        build system:
         * make-glib-api-docs: switch to python3

PR:		243433
Exp-run by:	antoine
2020-01-22 17:59:22 +00:00

13 lines
447 B
C++

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()));
}
}
}