# HG changeset patch # User jwe # Date 1076006578 0 # Node ID c9e5b9fa7b175c53c89b6bef90dc2ca5a810b085 # Parent 108c9a93196d7650064cac4380b1eee2f51c43b9 [project @ 2004-02-05 18:42:58 by jwe] diff -r 108c9a93196d -r c9e5b9fa7b17 liboctave/Array.cc --- a/liboctave/Array.cc Thu Feb 05 18:25:00 2004 +0000 +++ b/liboctave/Array.cc Thu Feb 05 18:42:58 2004 +0000 @@ -2060,8 +2060,8 @@ retval.resize (frozen_lengths); } - else if (all_colon_equiv (ra_idx, dimensions) - && frozen_lengths.length () == n_dims) + else if (frozen_lengths.length () == n_dims + && all_colon_equiv (ra_idx, dimensions)) { retval = *this; } diff -r 108c9a93196d -r c9e5b9fa7b17 liboctave/ChangeLog --- a/liboctave/ChangeLog Thu Feb 05 18:25:00 2004 +0000 +++ b/liboctave/ChangeLog Thu Feb 05 18:42:58 2004 +0000 @@ -1,3 +1,8 @@ +2004-02-05 Petter Risholm + + * Array.cc (Array::index): Check for frozen_lengths.length () + == n_dims before checking to see if all indices are colon_equiv. + 2004-02-05 John W. Eaton * Array.cc (Array::assignN): Require RHS == 0x0 matrix for