# HG changeset patch # User Jaroslav Hajek # Date 1231746130 -3600 # Node ID c72207960242fe6681a6921543dd337ec79569f1 # Parent c1709a45b45be1b25ab5bcea9c7ee8f1a04c876b minor simplifications to latest patches diff --git a/src/ov-cell.cc b/src/ov-cell.cc --- a/src/ov-cell.cc +++ b/src/ov-cell.cc @@ -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::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::assign (i, Cell (t_rhs.non_null_value ())); else if (! error_state)