[atril] 01/03: debian/patches: Add 0003_fix-case-sensitive-search-pdf.patch Fix case sensitive searching for PDF (Closes: #798533).

Mike Gabriel sunweaver at debian.org
Mon Jul 24 08:32:38 UTC 2017


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch debian/jessie/updates
in repository atril.

commit 6cfb94cabe2b2867fe1e495fe67a79ef986e0fd7
Author: Pablo Barciela <scow at riseup.net>
Date:   Thu Apr 27 11:11:36 2017 +0200

    debian/patches: Add 0003_fix-case-sensitive-search-pdf.patch Fix case sensitive searching for PDF (Closes: #798533).
---
 .../0003_fix-case-sensitive-search-pdf.patch       | 32 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 33 insertions(+)

diff --git a/debian/patches/0003_fix-case-sensitive-search-pdf.patch b/debian/patches/0003_fix-case-sensitive-search-pdf.patch
new file mode 100644
index 0000000..3c65663
--- /dev/null
+++ b/debian/patches/0003_fix-case-sensitive-search-pdf.patch
@@ -0,0 +1,32 @@
+From 6f17ff9e26dfca3f120e424c374c06f9fefab46f Mon Sep 17 00:00:00 2001
+From: Cormac Walsh <cormac.walsh at protonmail.com>
+Date: Fri, 14 Oct 2016 22:22:09 +0200
+Subject: [PATCH] Fix case sensitive searching for PDF
+
+---
+ backend/pdf/ev-poppler.cc | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
+index ea49695..0ba8c0b 100644
+--- a/backend/pdf/ev-poppler.cc
++++ b/backend/pdf/ev-poppler.cc
+@@ -1523,13 +1523,17 @@ pdf_document_find_find_text (EvDocumentFind *document_find,
+ 	PopplerPage *poppler_page;
+ 	gdouble height;
+ 	GList *retval = NULL;
++	PopplerFindFlags options = POPPLER_FIND_DEFAULT;
+ 
+ 	g_return_val_if_fail (POPPLER_IS_PAGE (page->backend_page), NULL);
+ 	g_return_val_if_fail (text != NULL, NULL);
+ 
+ 	poppler_page = POPPLER_PAGE (page->backend_page);
+ 	
+-	matches = poppler_page_find_text (poppler_page, text);
++	if (case_sensitive)
++		options = POPPLER_FIND_CASE_SENSITIVE;
++
++	matches = poppler_page_find_text_with_options (poppler_page, text, options);
+ 	if (!matches)
+ 		return NULL;
+ 
diff --git a/debian/patches/series b/debian/patches/series
index cce8d03..23c901e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,5 @@
 0001_open-multiple-files.patch
 0002_forgotten-mutex-unlock.patch
+0003_fix-case-sensitive-search-pdf.patch
 2001_omit-gfdl-licensed-help-files.patch
 0003-CVE-2017-1000083-evince-comics-remove-tar-commands-support-3-10-3.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/atril.git



More information about the pkg-mate-commits mailing list