summaryrefslogtreecommitdiff
path: root/libview/ev-view-accessible.c
diff options
context:
space:
mode:
Diffstat (limited to 'libview/ev-view-accessible.c')
-rw-r--r--libview/ev-view-accessible.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libview/ev-view-accessible.c b/libview/ev-view-accessible.c
index 8274aced..b19e5120 100644
--- a/libview/ev-view-accessible.c
+++ b/libview/ev-view-accessible.c
@@ -448,7 +448,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,