# HG changeset patch # User John W. Eaton # Date 1291794348 18000 # Node ID 71cce7108190e3b7cbfcf7ac6d7bc829e6cebd4f # Parent 43fa0522734d188a276911aa68290c03cdaddc57 graphics.h.in (base_property::do_set): don't reverse order of children diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-12-08 John W. Eaton + + * graphics.h.in (base_property::do_set): Don't reverse order of + children. Bug #31822. + 2010-12-08 John W. Eaton * symtab.cc (symbol_table::fcn_info::fcn_info_rep::find_user_function): diff --git a/src/graphics.h.in b/src/graphics.h.in --- a/src/graphics.h.in +++ b/src/graphics.h.in @@ -1475,8 +1475,16 @@ if (is_ok) { + Matrix tmp = new_kids_column.stack (get_hidden ()); + children_list.clear (); - do_init_children (new_kids_column.stack (get_hidden ())); + + // Don't use do_init_children here, as that reverses the + // order of the list, and we don't want to do that if setting + // the child list directly. + + for (octave_idx_type i = 0; i < tmp.numel (); i++) + children_list.push_back (tmp.xelem (i)); } return is_ok;