diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-06-22 13:38:29 -0500 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-07-05 02:46:06 +0200 |
commit | 8addb8e4d0adb8f90430dca0af115fe75b8e29d8 (patch) | |
tree | 04121eb51a36a8ddb1ed28cd8e3811e76a0228f7 /kfile-plugins/dependencies/poppler-tqt/poppler-page.cc | |
parent | 720e1d7b07cc617e873f2a9cfa5560105bfaa14d (diff) | |
download | tdegraphics-8addb8e4d0adb8f90430dca0af115fe75b8e29d8.tar.gz tdegraphics-8addb8e4d0adb8f90430dca0af115fe75b8e29d8.zip |
Fix FTBFS on Poppler >= 0.20
This resolves Bug 1061
(cherry picked from commit 44d1a52bf8b9bf70433107446ec20dfe05b198fb)
Diffstat (limited to 'kfile-plugins/dependencies/poppler-tqt/poppler-page.cc')
-rw-r--r-- | kfile-plugins/dependencies/poppler-tqt/poppler-page.cc | 12 |
1 files changed, 10 insertions, 2 deletions
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<TextBox*> Page::textList() const TextOutputDev *output_dev; TQValueList<TextBox*> 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); |