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	Sat Sep 20 18:08:40 2003 +0000
+++ b/src/ov-cell.cc	Wed Sep 24 17:11:46 2003 +0000
@@ -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);
 		  }
 	      }
 	  }