changeset 8457:c72207960242

minor simplifications to latest patches
author Jaroslav Hajek <highegg@gmail.com>
date Mon, 12 Jan 2009 08:42:10 +0100
parents c1709a45b45b
children d254a21e0120
files src/ov-cell.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ov-cell.cc	Sun Jan 11 14:27:52 2009 +0100
+++ b/src/ov-cell.cc	Mon Jan 12 08:42:10 2009 +0100
@@ -183,7 +183,7 @@
 
 	    if (! error_state)
 	      {
-		if (tmp.dims ().numel () == 1)
+		if (tmp.numel () == 1)
 		  {
 		    tmp = tmp.cell_value ()(0,0);
 
@@ -268,7 +268,7 @@
 
 		octave_base_matrix<Cell>::assign (i, tmp_cell);
 	      }
-	    else if (i.all_scalars () || do_index_op (i, true).dims ().numel () == 1)
+	    else if (i.all_scalars () || do_index_op (i, true).numel () == 1)
               // Regularize a null matrix if stored into a cell.
               octave_base_matrix<Cell>::assign (i, Cell (t_rhs.non_null_value ()));
             else if (! error_state)