fix build with poppler 0.70
authorEvangelos Foutras <evangelos@foutrelis.com>
Wed, 24 Oct 2018 14:48:53 +0000 (17:48 +0300)
committerRene Engelhard <rene@debian.org>
Sun, 13 Jan 2019 07:25:12 +0000 (07:25 +0000)
Gbp-Pq: Name poppler-fix-build-0-70.patch

sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx

index 06e4faead383d036659d98168a9cfc4d52265888..abc8aa3d284a1cc1ca7e51326d0e2132a61249a8 100644 (file)
@@ -578,7 +578,11 @@ void PDFOutDev::restoreState(GfxState*)
     printf( "restoreState\n" );
 }
 
+#if POPPLER_CHECK_VERSION(0, 70, 0)
+void PDFOutDev::setDefaultCTM(const double *pMat)
+#else
 void PDFOutDev::setDefaultCTM(double *pMat)
+#endif
 {
     assert(pMat);
 
index 7e65f085d28843b1b4f53207db070ebdedd6bbcf..c565b4996981b68ff9a17241696b9193da541e03 100644 (file)
@@ -166,7 +166,11 @@ namespace pdfi
         //----- initialization and control
 
         // Set default transform matrix.
+#if POPPLER_CHECK_VERSION(0, 70, 0)
+        virtual void setDefaultCTM(const double *ctm) override;
+#else
         virtual void setDefaultCTM(double *ctm) override;
+#endif
 
         // Start a page.
         virtual void startPage(int pageNum, GfxState *state