Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-view.c')
-rw-r--r--shell/ev-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index 9c575d2..02a2783 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -5181,7 +5181,7 @@ ev_view_find_previous (EvView *view)
if (view->find_result < 0) {
jump_to_find_page (view, EV_VIEW_FIND_PREV, -1);
- view->find_result = ev_view_find_get_n_results (view, view->current_page) - 1;
+ view->find_result = MAX (0, ev_view_find_get_n_results (view, view->current_page) - 1);
jump_to_find_result (view);
} else {
jump_to_find_result (view);