summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-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 e30d36d2..67fe7e77 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -1452,7 +1452,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;