summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoanmarie Diggs <[email protected]>2014-04-25 20:48:06 -0400
committerraveit65 <[email protected]>2017-11-27 10:13:51 +0100
commite532aade547eac42a05fbd59ad98425a4d920f4a (patch)
tree29e8ed0b1d83ce34336c1ef6ba8b5712744fd719
parent91241a1d27d9763df56ff5c6e868f4c37d65fe8b (diff)
downloadatril-e532aade547eac42a05fbd59ad98425a4d920f4a.tar.bz2
atril-e532aade547eac42a05fbd59ad98425a4d920f4a.tar.xz
libview: Update the caret cursor when jumping to a find result
https://bugzilla.gnome.org/show_bug.cgi?id=728996 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=fc031f7
-rw-r--r--libview/ev-view.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index a7ae53e0..75b89caf 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -7452,6 +7452,9 @@ jump_to_find_result (EvView *view)
rect = ev_view_find_get_result (view, page, view->find_result);
_ev_view_transform_doc_rect_to_view_rect (view, page, rect, &view_rect);
ensure_rectangle_is_visible (view, &view_rect);
+ if (view->caret_enabled && view->rotation == 0)
+ position_caret_cursor_at_doc_point (view, page, rect->x1, rect->y1);
+
view->jump_to_find_result = FALSE;
}
}