Commit c0ecc956 authored by Joanmarie Diggs's avatar Joanmarie Diggs
Browse files

libview: Add check for pageless documents to ev_view_accessible_focus_changed

Without this check, Evince will crash when opening a document that, for
whatever reason, has no pages.
parent 6947d465
......@@ -450,7 +450,7 @@ ev_view_accessible_focus_changed (GtkWidget *widget,
g_return_val_if_fail (EV_IS_VIEW (widget), FALSE);
g_return_val_if_fail (EV_IS_VIEW_ACCESSIBLE (self), FALSE);
if (self->priv->children == NULL)
if (self->priv->children == NULL || self->priv->children->len == 0)
return FALSE;
page_accessible = g_ptr_array_index (self->priv->children,
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