Commit c0858d7d authored by Philipp Erhardt's avatar Philipp Erhardt
Browse files

Fix drawing search rects right when they are found

parent b9be7d5b
......@@ -263,6 +263,10 @@ void SearchBar::insert_hits(int page, QList<QRectF> *l) {
hits[page] = l;
if (viewer->get_canvas()->get_layout()->page_visible(page)) {
// only update the layout if the hits should be viewed
if (empty) {
if (viewer->get_canvas()->get_layout()->update_search()) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment