Commit c4e98b31 authored by Joanmarie Diggs's avatar Joanmarie Diggs

libview: Be sure we have an EvViewAccessible before setting its page range

parent fc031f76
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment