diff options
Diffstat (limited to 'libview')
-rw-r--r-- | libview/ev-view.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c index 8c7c8520..b513fcbe 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -4436,7 +4436,7 @@ ev_view_button_press_event (GtkWidget *widget, { EvView *view = EV_VIEW (widget); - if (!view->document) + if (!view->document || ev_document_get_n_pages (view->document) <= 0) return FALSE; if (gtk_gesture_is_recognized (view->zoom_gesture)) |