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);