From 1f42a5796ab9393d147b7478daa31b42ce07826d Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 31 Jul 2011 19:57:25 +0000 Subject: Fix kdegraphics poppler >=0.16 detection git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1244223 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake | 4 ---- kfile-plugins/dependencies/poppler-tqt/poppler-document.cc | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'kfile-plugins') diff --git a/kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake b/kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake index a021744c..2401f44d 100644 --- a/kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake +++ b/kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake @@ -6,7 +6,3 @@ check_cxx_source_compiles(" int main(int, char**) { int a; int b; PSOutputDev *psOut = new PSOutputDev(\"test\", (PDFDoc*)0, (XRef*)0, (Catalog*)0, NULL, 0, 0, psModePS, a, b); } " HAVE_POPPLER_016 ) tde_restore( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES ) - -if( HAVE_POPPLER_016 ) - set( POPPLER_016 1 ) -endif( ) diff --git a/kfile-plugins/dependencies/poppler-tqt/poppler-document.cc b/kfile-plugins/dependencies/poppler-tqt/poppler-document.cc index 93d5a49c..5fe6ea28 100644 --- a/kfile-plugins/dependencies/poppler-tqt/poppler-document.cc +++ b/kfile-plugins/dependencies/poppler-tqt/poppler-document.cc @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ +#include #include #include #include @@ -316,7 +317,7 @@ bool Document::print(const TQString &fileName, TQValueList pageList, double bool Document::print(const TQString &file, TQValueList pageList, double hDPI, double vDPI, int rotate, int paperWidth, int paperHeight) { -#ifdef POPPLER_016 +#ifdef HAVE_POPPLER_016 PSOutputDev *psOut = new PSOutputDev(file.latin1(), &(data->doc), data->doc.getXRef(), data->doc.getCatalog(), NULL, 1, data->doc.getNumPages(), psModePS, paperWidth, paperHeight); #else PSOutputDev *psOut = new PSOutputDev(file.latin1(), data->doc.getXRef(), data->doc.getCatalog(), NULL, 1, data->doc.getNumPages(), psModePS, paperWidth, paperHeight); -- cgit v1.2.1