# HG changeset patch # User jwe # Date 1115032188 0 # Node ID f087ea85c24b2c11990200564b9af0cf7183e8a9 # Parent 322ab0da00f8e637bad7c96937975953ef2e1c68 [project @ 2005-05-02 11:09:48 by jwe] diff -r 322ab0da00f8 -r f087ea85c24b src/ChangeLog --- a/src/ChangeLog Mon May 02 10:48:43 2005 +0000 +++ b/src/ChangeLog Mon May 02 11:09:48 2005 +0000 @@ -1,10 +1,10 @@ 2005-05-02 John W. Eaton - * oct-map.h (Octave_map::seek, Octave_map::contents): New - non-const versions. - * oct-map.cc (Octave_map::assign (const octave_value_list&, - const std::string&, const Cell&)): For clarity, always resize to - new_dims. + * oct-map.h, oct-map.cc (Octave_map::seek, Octave_map::contents): + New non-const versions. + (Octave_map::assign (const octave_value_list&, + const std::string&, const Cell&)): Allow both tmp RHS and LHS to + be resized. For clarity, always resize to new_dims. 2005-05-02 David Bateman diff -r 322ab0da00f8 -r f087ea85c24b src/oct-map.cc --- a/src/oct-map.cc Mon May 02 10:48:43 2005 +0000 +++ b/src/oct-map.cc Mon May 02 11:09:48 2005 +0000 @@ -274,7 +274,8 @@ { tmp.resize (new_dims, fill_value); } - else if (new_dims != curr_dims) + + if (new_dims != curr_dims) { for (iterator p = begin (); p != end (); p++) contents(p).resize (new_dims, fill_value);