Mercurial > hg > octave-thorsten
diff src/graphics.h.in @ 11322:71cce7108190
graphics.h.in (base_property::do_set): don't reverse order of children
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 08 Dec 2010 02:45:48 -0500 (2010-12-08) |
parents | 3f952c6973f7 |
children | 1511bbfe6a6e |
line wrap: on
line diff
--- 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;