diff src/oct-map.cc @ 5328:322ab0da00f8

[project @ 2005-05-02 10:48:43 by jwe]
author jwe
date Mon, 02 May 2005 10:48:43 +0000
parents 4c8a2e4e0717
children f087ea85c24b
line wrap: on
line diff
--- a/src/oct-map.cc	Mon May 02 08:57:21 2005 +0000
+++ b/src/oct-map.cc	Mon May 02 10:48:43 2005 +0000
@@ -31,6 +31,12 @@
 #include "oct-map.h"
 #include "utils.h"
 
+Cell&
+Octave_map::contents (const std::string& k)
+{
+  return map[k];
+}
+
 Cell
 Octave_map::contents (const std::string& k) const
 {
@@ -271,7 +277,7 @@
       else if (new_dims != curr_dims)
 	{
 	  for (iterator p = begin (); p != end (); p++)
-	    contents(p).resize (rhs_dims, fill_value);
+	    contents(p).resize (new_dims, fill_value);
 	}
 
       dimensions = new_dims;