summaryrefslogtreecommitdiff
path: root/libview/ev-view-accessible.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-10 02:18:57 +0100
committerinfirit <[email protected]>2014-12-10 02:18:57 +0100
commitf8e8685f067bae57ed3ca1bd462086c0e9dbae7d (patch)
tree42778da11dcb99bce9b1a24ad3d3895720ce4228 /libview/ev-view-accessible.c
parent0e54ba33b487090b5befeb55ea6a6526bf207e35 (diff)
downloadatril-f8e8685f067bae57ed3ca1bd462086c0e9dbae7d.tar.bz2
atril-f8e8685f067bae57ed3ca1bd462086c0e9dbae7d.tar.xz
a11y: checking null before setting text_buffer text
Taken from evince commit: 88aee427ed3c45f7d84216f5512fbb07ce164edd From: danigm <[email protected]>
Diffstat (limited to 'libview/ev-view-accessible.c')
-rw-r--r--libview/ev-view-accessible.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libview/ev-view-accessible.c b/libview/ev-view-accessible.c
index 9e5ee753..adc195d4 100644
--- a/libview/ev-view-accessible.c
+++ b/libview/ev-view-accessible.c
@@ -116,7 +116,8 @@ ev_view_accessible_get_text_buffer (EvViewAccessible *accessible, EvView *view)
}
retval = ev_page_cache_get_text (page_cache, view->current_page);
- gtk_text_buffer_set_text (priv->buffer, retval, -1);
+ if (retval)
+ gtk_text_buffer_set_text (priv->buffer, retval, -1);
return priv->buffer;
}