Mercurial > hg > octave-nkf
diff src/ov-struct.cc @ 5342:f9ab8e67ce7a
[project @ 2005-05-06 17:35:41 by jwe]
author | jwe |
---|---|
date | Fri, 06 May 2005 17:35:41 +0000 |
parents | 4bea82210dcd |
children | 2f51d6d65fb2 |
line wrap: on
line diff
--- a/src/ov-struct.cc +++ b/src/ov-struct.cc @@ -1025,7 +1025,8 @@ if (!is) break; - Cell tcell = t2.cell_value (); + // Try for some backward compatibility... + Cell tcell = t2.is_cell () ? t2.cell_value () : Cell (t2); if (error_state) { @@ -1109,7 +1110,8 @@ if (!is) break; - Cell tcell = t2.cell_value (); + // Try for some backward compatibility... + Cell tcell = t2.is_cell () ? t2.cell_value () : Cell (t2); if (error_state) { @@ -1192,7 +1194,10 @@ hdf5_read_next_data, &dsub)) > 0) #endif { - Cell tcell = dsub.tc.cell_value (); + octave_value t2 = dsub.tc; + + // Try for some backward compatibility... + Cell tcell = t2.is_cell () ? t2.cell_value () : Cell (t2); if (error_state) {