diff options
author | Cormac Walsh <[email protected]> | 2016-10-14 22:22:09 +0200 |
---|---|---|
committer | Cormac Walsh <[email protected]> | 2016-10-14 22:22:09 +0200 |
commit | 6f17ff9e26dfca3f120e424c374c06f9fefab46f (patch) | |
tree | 144f02f99cd6c6a907d40ca0540201645be0f670 /backend/pdf/ev-poppler.cc | |
parent | 1cfd21534e4cd2ad423bc2d4cf711dad865f1792 (diff) | |
download | atril-6f17ff9e26dfca3f120e424c374c06f9fefab46f.tar.bz2 atril-6f17ff9e26dfca3f120e424c374c06f9fefab46f.tar.xz |
Fix case sensitive searching for PDF
Diffstat (limited to 'backend/pdf/ev-poppler.cc')
-rw-r--r-- | backend/pdf/ev-poppler.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index ea496951..0ba8c0bf 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; |