From 60e9b029d3a742ac2c3b65f56495a143f9bb0d18 Mon Sep 17 00:00:00 2001 From: Albert S Date: Mon, 26 Aug 2019 09:41:03 +0200 Subject: [PATCH] pdfworker: don't use deprecated search overload --- gui/pdfworker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/pdfworker.cpp b/gui/pdfworker.cpp index a5f4e8a..30f2067 100644 --- a/gui/pdfworker.cpp +++ b/gui/pdfworker.cpp @@ -73,7 +73,7 @@ struct Renderer QImage img = pdfPage->renderToImage(scaleX, scaleY); for(QString & word : wordsToHighlight) { - QList rects = pdfPage->search(word, Poppler::Page::CaseInsensitive); + QList rects = pdfPage->search(word, Poppler::Page::SearchFlag::IgnoreCase); for(QRectF &rect : rects) { QPainter painter(&img);