diff options
-rw-r--r-- | libview/ev-web-view.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libview/ev-web-view.c b/libview/ev-web-view.c index 5a101f6b..782e4ea4 100644 --- a/libview/ev-web-view.c +++ b/libview/ev-web-view.c @@ -252,6 +252,9 @@ ev_web_view_inverted_colors_changed_cb (EvDocumentModel *model, EvWebView *webview) { EvDocument *document = ev_document_model_get_document(model); + + if (!document || !document->iswebdocument) + return; if (ev_document_model_get_inverted_colors(model) == TRUE) { if (document == NULL) { |