[evince/gnome-3-12] libview: Be sure we have an EvViewAccessible before setting its page range
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/gnome-3-12] libview: Be sure we have an EvViewAccessible before setting its page range
- Date: Mon, 28 Apr 2014 16:57:40 +0000 (UTC)
commit 14d768558b22dfcd6913eafb4010dc2c504fd702
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Apr 28 10:52:21 2014 -0400
libview: Be sure we have an EvViewAccessible before setting its page range
libview/ev-view.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 4638bbe..3970993 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -785,9 +785,10 @@ view_update_range_and_current_page (EvView *view)
view->start_page,
view->end_page,
view->selection_info.selections);
- ev_view_accessible_set_page_range (EV_VIEW_ACCESSIBLE (view->accessible),
- view->start_page,
- view->end_page);
+ if (view->accessible)
+ ev_view_accessible_set_page_range (EV_VIEW_ACCESSIBLE (view->accessible),
+ view->start_page,
+ view->end_page);
if (ev_pixbuf_cache_get_surface (view->pixbuf_cache, view->current_page))
gtk_widget_queue_draw (GTK_WIDGET (view));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]