changeset 5329:f087ea85c24b

[project @ 2005-05-02 11:09:48 by jwe]
author jwe
date Mon, 02 May 2005 11:09:48 +0000
parents 322ab0da00f8
children f88f21827fe5
files src/ChangeLog src/oct-map.cc
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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  <jwe@octave.org>
 
-	* 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  <dbateman@free.fr>
 
--- 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);