diff options
author | infirit <[email protected]> | 2014-12-10 02:18:57 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-10 02:18:57 +0100 |
commit | f8e8685f067bae57ed3ca1bd462086c0e9dbae7d (patch) | |
tree | 42778da11dcb99bce9b1a24ad3d3895720ce4228 /libview/ev-view-accessible.c | |
parent | 0e54ba33b487090b5befeb55ea6a6526bf207e35 (diff) | |
download | atril-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.c | 3 |
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; } |