diff options
author | Timothy Pearson <[email protected]> | 2012-06-22 13:38:29 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-06-22 13:38:29 -0500 |
commit | 44d1a52bf8b9bf70433107446ec20dfe05b198fb (patch) | |
tree | 0a804104d45abb1d23d59a97b7cdaff1fb74fab8 /kfile-plugins/dependencies/poppler-tqt/poppler-page.cc | |
parent | 9227f8aca3cd2efe94eab60c3676d96247f337f5 (diff) | |
download | tdegraphics-44d1a52bf8b9bf70433107446ec20dfe05b198fb.tar.gz tdegraphics-44d1a52bf8b9bf70433107446ec20dfe05b198fb.zip |
Fix FTBFS on Poppler >= 0.20
This resolves Bug 1061
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); |