# HG changeset patch # User jwe # Date 1140806308 0 # Node ID 6e9a14b3c29997c9a8d122f7237657d59f8fa388 # Parent 7171d19706df9cedee41b196bd6081f6eb94dc75 [project @ 2006-02-24 18:38:28 by jwe] diff --git a/liboctave/Array.cc b/liboctave/Array.cc --- a/liboctave/Array.cc +++ b/liboctave/Array.cc @@ -3176,6 +3176,8 @@ } } + lhs.clear_index (); + if (retval != 0) lhs = lhs.reshape (final_lhs_dims); } diff --git a/liboctave/Array.h b/liboctave/Array.h --- a/liboctave/Array.h +++ b/liboctave/Array.h @@ -234,11 +234,11 @@ rep->count++; dimensions = a.dimensions; + + idx_count = 0; + idx = 0; } - idx_count = 0; - idx = 0; - return *this; } diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,9 @@ +2006-02-24 John W. Eaton + + * Array.cc (assignN): Clear index before reshaping. + + * Array.h (Array::operator =): Don't set idx to 0 if copying self. + 2006-02-20 David Bateman * dSparse.cc (dsolve, utsolve, ltsolve): Remove restriction that