Mercurial > hg > octave-nkf
changeset 11632:eaaa74f38140 release-3-0-x
fix struct resizing bug
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 08 Feb 2008 03:29:12 -0500 |
parents | 895a1c788281 |
children | a3710cf0b010 |
files | src/ChangeLog src/ov-struct.cc |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-02-08 John W. Eaton <jwe@octave.org> + + * ov-struct.cc (octave_struct::subsref): Allow Cell::index to resize. + 2008-02-07 David Bateman <dbateman@free.fr> * ov-range.h (octave_range::sort): New functions.
--- a/src/ov-struct.cc +++ b/src/ov-struct.cc @@ -118,7 +118,7 @@ if (! error_state) { - Cell t = tmp.index (idx.front ()); + Cell t = tmp.index (idx.front (), true); retval(0) = (t.length () == 1) ? t(0) : octave_value (t, true); @@ -129,7 +129,7 @@ } } else - retval(0) = map.index (idx.front ()); + retval(0) = map.index (idx.front (), true); } break;