# HG changeset patch # User John W. Eaton # Date 1202459291 18000 # Node ID cb8d75cedc93589cc583d8a81fd9f664061d23f2 # Parent d3fe4d466bc2466acf85f5490d171adb92b1abbb fix struct resizing bug diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2008-02-08 John W. Eaton + * ov-struct.cc (octave_struct::subsref): Allow Cell::index to resize. + * input.cc (interactive_input): Eliminate debug arg. Change All uses. (get_user_input): Don't process input_buf if there is an error. Call reset_error_handler instead of setting error_state to 0. diff --git a/src/ov-struct.cc b/src/ov-struct.cc --- 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;