We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 291facd commit e79d266Copy full SHA for e79d266
libview/ev-view-accessible.c
@@ -380,6 +380,13 @@ initialize_children (EvViewAccessible *self)
380
child = ev_page_accessible_new (self, i);
381
g_ptr_array_add (self->priv->children, child);
382
}
383
+ /* When a document is reloaded, it may have less pages.
384
+ * We need to update the end page accordingly to avoid
385
+ * invalid access to self->priv->children
386
+ * See https://bugzilla.gnome.org/show_bug.cgi?id=735744
387
+ */
388
+ if (self->priv->end_page >= n_pages)
389
+ self->priv->end_page = n_pages - 1;
390
391
392
static void
0 commit comments