summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libview/ev-web-view.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libview/ev-web-view.c b/libview/ev-web-view.c
index 6e302660..fa0ff009 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) {