diff src/ov-class.cc @ 9774:fbf15a0f30f0

Call user-defined subsref/subsasgn with 1xN structs instead of Nx1
author David Grundberg <davidg@cs.umu.se>
date Tue, 03 Nov 2009 08:52:00 +0100
parents 0df32e0b2074
children 9d9f858849c7
line wrap: on
line diff
--- a/src/ov-class.cc
+++ b/src/ov-class.cc
@@ -178,8 +178,8 @@
 
   if (len == idx.size ())
     {
-      Cell type_field (len, 1);
-      Cell subs_field (len, 1);
+      Cell type_field (1, len);
+      Cell subs_field (1, len);
 
       std::list<octave_value_list>::const_iterator p = idx.begin ();