From 8addb8e4d0adb8f90430dca0af115fe75b8e29d8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 22 Jun 2012 13:38:29 -0500 Subject: Fix FTBFS on Poppler >= 0.20 This resolves Bug 1061 (cherry picked from commit 44d1a52bf8b9bf70433107446ec20dfe05b198fb) --- kfile-plugins/dependencies/poppler-tqt/poppler-page.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'kfile-plugins/dependencies/poppler-tqt/poppler-page.cc') diff --git a/kfile-plugins/dependencies/poppler-tqt/poppler-page.cc b/kfile-plugins/dependencies/poppler-tqt/poppler-page.cc index b6be9bd1..c5be6ddf 100644 --- a/kfile-plugins/dependencies/poppler-tqt/poppler-page.cc +++ b/kfile-plugins/dependencies/poppler-tqt/poppler-page.cc @@ -128,8 +128,12 @@ TQString Page::getText(const Rectangle &r) const PDFRectangle *rect; TQString result; ::Page *p; - + +#ifdef HAVE_POPPLER_020 + output_dev = new TextOutputDev(0, gFalse, 0, gFalse, gFalse); +#else output_dev = new TextOutputDev(0, gFalse, gFalse, gFalse); +#endif data->doc->data->doc.displayPageSlice(output_dev, data->index + 1, 72, 72, 0, false, false, false, -1, -1, -1, -1); p = data->doc->data->doc.getCatalog()->getPage(data->index + 1); @@ -159,8 +163,12 @@ TQValueList Page::textList() const TextOutputDev *output_dev; TQValueList output_list; - + +#ifdef HAVE_POPPLER_020 + output_dev = new TextOutputDev(0, gFalse, 0, gFalse, gFalse); +#else output_dev = new TextOutputDev(0, gFalse, gFalse, gFalse); +#endif data->doc->data->doc.displayPageSlice(output_dev, data->index + 1, 72, 72, 0, false, false, false, -1, -1, -1, -1); -- cgit v1.2.1