From de04264eb52304bac5b83bbbd91b1d079dce4dae 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 0eeb4c3..ad9490a 100644 --- a/gui/pdfworker.cpp +++ b/gui/pdfworker.cpp @@ -70,7 +70,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);