aboutsummaryrefslogtreecommitdiff
path: root/office/apvlv/poppler-0.15.1.diff
diff options
context:
space:
mode:
authorArne Welzel <arne.welzel@googlemail.com>2011-07-16 19:51:11 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-07-16 19:51:11 -0500
commite3e945dc02f02968a8a3e10654f5def0ea421612 (patch)
treeaed65788dfd52a15202e81afa0b6ec4586ee0783 /office/apvlv/poppler-0.15.1.diff
parent43241823528dd4e8b5b5aba5d5574569ba28bca2 (diff)
office/apvlv: Added (a PDF viewer which uses Vim keybindigs)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office/apvlv/poppler-0.15.1.diff')
-rw-r--r--office/apvlv/poppler-0.15.1.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/office/apvlv/poppler-0.15.1.diff b/office/apvlv/poppler-0.15.1.diff
new file mode 100644
index 0000000000000..2c16ae59319e0
--- /dev/null
+++ b/office/apvlv/poppler-0.15.1.diff
@@ -0,0 +1,19 @@
+--- a/src/ApvlvFile.cpp 2011-07-07 16:26:45.257995568 +0200
++++ b/src/ApvlvFile.cpp 2011-07-07 16:29:46.654995527 +0200
+@@ -302,9 +302,14 @@
+
+ bool ApvlvPDF::pagetext (int pn, int x1, int y1, int x2, int y2, char **out)
+ {
+- PopplerRectangle rect = { x1, y1, x2, y2 };
+ PopplerPage *page = poppler_document_get_page (mDoc, pn);
+- *out = poppler_page_get_text (page, POPPLER_SELECTION_WORD, &rect);
++#if POPPLER_CHECK_VERSION(0, 15, 1)
++ PopplerRectangle rect = { x1, y2, x2, y1 };
++ *out = poppler_page_get_selected_text (page, POPPLER_SELECTION_WORD, &rect);
++#else
++ PopplerRectangle rect = { x1, y1, x2, y2 };
++ *out = poppler_page_get_text (page, POPPLER_SELECTION_WORD, &rect);
++#endif
+ if (*out != NULL)
+ {
+ return true;