Mercurial > hg > octave-nkf
diff src/ov-cell.cc @ 4519:8e1c04e506ce
[project @ 2003-09-24 17:11:46 by jwe]
author | jwe |
---|---|
date | Wed, 24 Sep 2003 17:11:46 +0000 |
parents | 508238e65af7 |
children | 742993a501b9 |
line wrap: on
line diff
--- a/src/ov-cell.cc +++ b/src/ov-cell.cc @@ -158,7 +158,11 @@ tmp.make_unique (); - t_rhs = tmp.subsasgn (type.substr (1), next_idx, rhs); + if (! tmp.is_defined () || tmp.is_empty ()) + tmp = octave_value::empty_conv (type.substr (1), rhs); + + if (! error_state) + t_rhs = tmp.subsasgn (type.substr (1), next_idx, rhs); } } }