diff src/ov-struct.cc @ 7460:cb8d75cedc93

fix struct resizing bug
author John W. Eaton <jwe@octave.org>
date Fri, 08 Feb 2008 03:28:11 -0500
parents 745a8299c2b5
children c01ff6818f4c
line wrap: on
line diff
--- 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;