~ubuntu-branches/ubuntu/saucy/apvlv/saucy

« back to all changes in this revision

Viewing changes to debian/patches/01_fix-poppler-1.14.1.patch

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2011-06-01 22:18:49 UTC
  • mfrom: (10.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110601221849-niibd5p5i7avemy4
Tags: 0.1.1-1.1
* Non-maintainer upload.
* Add support for poppler >= 0.15. Patch by Pino Toscano. (Closes: #627609)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Description: Fix FTBFS with new libpoppler (0.14.1) that changed the semantics of
2
 
 poppler_page_get_text, and added poppler_page_get_selected_text as a
3
 
 replacement.
4
 
From: Chow Loong Jin <hyperair@ubuntu.com>
5
 
Bug: https://code.google.com/p/apvlv/issues/detail?id=110
6
 
Index: apvlv/src/ApvlvFile.cpp
7
 
===================================================================
8
 
--- apvlv.orig/src/ApvlvFile.cpp        2011-02-19 21:33:34.461053126 +0800
9
 
+++ apvlv/src/ApvlvFile.cpp     2011-02-23 01:40:40.246592472 +0800
10
 
@@ -273,9 +273,9 @@
11
 
 
12
 
   bool ApvlvPDF::pagetext (int pn, int x1, int y1, int x2, int y2, char **out)
13
 
   {
14
 
-    PopplerRectangle rect = { x1, y1, x2, y2 };
15
 
+    PopplerRectangle rect = { x1, y2, x2, y1 };
16
 
     PopplerPage *page = poppler_document_get_page (mDoc, pn);
17
 
-    *out = poppler_page_get_text (page, POPPLER_SELECTION_WORD, &rect);
18
 
+    *out = poppler_page_get_selected_text (page, POPPLER_SELECTION_WORD, &rect);
19
 
     if (*out != NULL)
20
 
       {
21
 
        return true;