From f3cef772c4925349eb56c7b76800e01572a29dbe Mon Sep 17 00:00:00 2001 From: kili Date: Thu, 24 Oct 2024 19:11:42 +0000 Subject: [PATCH] Fix build with poppler-24.10.0. ok robert@ --- ...rce_pdfimport_xpdfwrapper_pdfioutdev_gpl_cxx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 editors/libreoffice/patches/patch-sdext_source_pdfimport_xpdfwrapper_pdfioutdev_gpl_cxx diff --git a/editors/libreoffice/patches/patch-sdext_source_pdfimport_xpdfwrapper_pdfioutdev_gpl_cxx b/editors/libreoffice/patches/patch-sdext_source_pdfimport_xpdfwrapper_pdfioutdev_gpl_cxx new file mode 100644 index 00000000000..9e466c8e161 --- /dev/null +++ b/editors/libreoffice/patches/patch-sdext_source_pdfimport_xpdfwrapper_pdfioutdev_gpl_cxx @@ -0,0 +1,17 @@ +Fix build with poppler-24.10.0. + +Index: sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +--- sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx.orig ++++ sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +@@ -1306,9 +1306,9 @@ poppler_bool PDFOutDev::tilingPatternFill(GfxState *st + 0, nBitmapWidth * nBitmapHeight, Object(objNull))); + auto aDecode = Object(objNull); + std::unique_ptr pRgbIdentityColorMap(new GfxImageColorMap(8, &aDecode, +- new GfxDeviceRGBColorSpace())); ++ std::unique_ptr (new GfxDeviceRGBColorSpace()))); + std::unique_ptr pGrayIdentityColorMap(new GfxImageColorMap(8, &aDecode, +- new GfxDeviceGrayColorSpace())); ++ std::unique_ptr (new GfxDeviceGrayColorSpace()))); + + OutputBuffer aBuf; initBuf(aBuf); + writePng_(aBuf, pRgbStr.get(), nBitmapWidth, nBitmapHeight, pRgbIdentityColorMap.get(),