summaryrefslogtreecommitdiff
path: root/libview
diff options
context:
space:
mode:
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 5fbf12ff..c767368e 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -3623,7 +3623,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_widget_has_focus (widget)) {