Skip to content

Commit 6bc767b

Browse files
committed
ev-window.c: Check that we have a document set before accessing it.
Fixes #673.
1 parent 15154e8 commit 6bc767b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

shell/ev-window.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,13 +1390,10 @@ ev_window_refresh_window_thumbnail (EvWindow *ev_window)
13901390
gint rotation;
13911391
EvDocument *document = ev_window->priv->document;
13921392

1393-
if (document->iswebdocument) {
1394-
return;
1395-
}
1396-
13971393
if (!document || ev_document_get_n_pages (document) <= 0 ||
13981394
ev_document_get_n_pages (document) <= 0 ||
1399-
!ev_document_check_dimensions (document)) {
1395+
!ev_document_check_dimensions (document) ||
1396+
document->iswebdocument) {
14001397
return;
14011398
}
14021399

0 commit comments

Comments
 (0)