Skip to content

Commit e4f8fce

Browse files
Piiitraveit65
authored andcommitted
libview: save inverted colors in a document
The web-view callback for inverted colors got called, and if it did not find a web-view open it defaulted to FALSE for inverted colors. origin commit: linuxmint/xreader@abb5060 linuxmint/xreader#38
1 parent 6217a89 commit e4f8fce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libview/ev-web-view.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ ev_web_view_inverted_colors_changed_cb (EvDocumentModel *model,
252252
EvWebView *webview)
253253
{
254254
EvDocument *document = ev_document_model_get_document(model);
255+
256+
if (!document || !document->iswebdocument)
257+
return;
255258

256259
if (ev_document_model_get_inverted_colors(model) == TRUE) {
257260
if (document == NULL) {

0 commit comments

Comments
 (0)