evince r3273 - in trunk: . shell
- From: carlosgc svn gnome org
- To: svn-commits-list gnome org
- Subject: evince r3273 - in trunk: . shell
- Date: Sun, 23 Nov 2008 16:56:39 +0000 (UTC)
Author: carlosgc
Date: Sun Nov 23 16:56:39 2008
New Revision: 3273
URL: http://svn.gnome.org/viewvc/evince?rev=3273&view=rev
Log:
2008-11-23 Carlos Garcia Campos <carlosgc gnome org>
* shell/ev-view.c: (ev_view_find_previous):
Make sure find_result is never < 0 which causes a crash while
searching. Fixes bug #558377.
Modified:
trunk/ChangeLog
trunk/shell/ev-view.c
Modified: trunk/shell/ev-view.c
==============================================================================
--- trunk/shell/ev-view.c (original)
+++ trunk/shell/ev-view.c Sun Nov 23 16:56:39 2008
@@ -5181,7 +5181,7 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]