summaryrefslogtreecommitdiff
path: root/shell/ev-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 59d9f230..993df17e 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -1458,7 +1458,7 @@ ev_window_refresh_window_thumbnail (EvWindow *ev_window)
gint rotation;
EvDocument *document = ev_window->priv->document;
- if (!EV_IS_DOCUMENT_THUMBNAILS (document) ||
+ if (!document || ev_document_get_n_pages (document) <= 0 ||
ev_document_get_n_pages (document) <= 0 ||
!ev_document_check_dimensions (document)) {
return;