Mercurial > hg > octave-lojdl
changeset 8178:af41e2094993
fix assignN still calling maybe_delete_elements
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 03 Oct 2008 13:03:34 +0200 |
parents | 65c4ac814082 |
children | 6c08e3921d3e |
files | liboctave/Array.cc liboctave/ChangeLog |
diffstat | 2 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/Array.cc +++ b/liboctave/Array.cc @@ -3374,11 +3374,7 @@ Array<idx_vector> idx = conv_to_array (idx_vex, n_idx); - if (rhs_dims_len == 2 && rhs_dims(0) == 0 && rhs_dims(1) == 0) - { - lhs.maybe_delete_elements (idx, rfv); - } - else if (n_idx == 0) + if (n_idx == 0) { lhs.clear_index ();