Mercurial > hg > octave-lojdl
changeset 8294:b2a6309b2d87
oct-map.cc: copy key_list in indexing functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 30 Oct 2008 17:31:15 -0400 |
parents | ad5bb02d267a |
children | 16819ca24fa5 |
files | src/ChangeLog src/oct-map.cc |
diffstat | 2 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-10-30 John W. Eaton <jwe@octave.org> + + * oct-map.cc (Octave_map::index): Copy key_list. + 2008-10-30 David Bateman <dbateman@free.fr> * graphic.h.in (axes::properties): Add keyreverse property.
--- a/src/oct-map.cc +++ b/src/oct-map.cc @@ -487,6 +487,9 @@ retval.assign (key(p), tmp); } + + // Preserve order of keys. + retval.key_list = key_list; } else retval = *this; @@ -509,6 +512,9 @@ retval.assign (key (p), tmp); } + // Preserve order of keys. + retval.key_list = key_list; + return retval; } @@ -528,6 +534,9 @@ retval.assign (key (p), tmp); } + // Preserve order of keys. + retval.key_list = key_list; + return retval; } @@ -547,6 +556,9 @@ retval.assign (key (p), tmp); } + // Preserve order of keys. + retval.key_list = key_list; + return retval; }