[evince] a11y: checking null before setting text_buffer text
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] a11y: checking null before setting text_buffer text
- Date: Mon, 21 Mar 2011 11:56:58 +0000 (UTC)
commit 88aee427ed3c45f7d84216f5512fbb07ce164edd
Author: danigm <danigm wadobo com>
Date: Mon Mar 21 08:17:35 2011 +0100
a11y: checking null before setting text_buffer text
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 a16a59f..5834af2 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]