comparison 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
comparison
equal deleted inserted replaced
7459:d3fe4d466bc2 7460:cb8d75cedc93
116 116
117 Cell tmp = dotref (key_idx); 117 Cell tmp = dotref (key_idx);
118 118
119 if (! error_state) 119 if (! error_state)
120 { 120 {
121 Cell t = tmp.index (idx.front ()); 121 Cell t = tmp.index (idx.front (), true);
122 122
123 retval(0) = (t.length () == 1) ? t(0) : octave_value (t, true); 123 retval(0) = (t.length () == 1) ? t(0) : octave_value (t, true);
124 124
125 // We handled two index elements, so tell 125 // We handled two index elements, so tell
126 // next_subsref to skip both of them. 126 // next_subsref to skip both of them.
127 127
128 skip++; 128 skip++;
129 } 129 }
130 } 130 }
131 else 131 else
132 retval(0) = map.index (idx.front ()); 132 retval(0) = map.index (idx.front (), true);
133 } 133 }
134 break; 134 break;
135 135
136 case '.': 136 case '.':
137 { 137 {