diff liboctave/Array.cc @ 7597:6b2a99e44ff2

shortened empty indexing fix
author David Bateman <dbateman@free.fr>
date Tue, 18 Mar 2008 15:39:13 -0400
parents 755bf7ecc29b
children 48488cca0006
line wrap: on
line diff
--- a/liboctave/Array.cc
+++ b/liboctave/Array.cc
@@ -2363,7 +2363,7 @@
   dim_vector new_dims = dims ();
   dim_vector frozen_lengths;
 
-  if (! any_orig_empty (ra_idx) && ra_idx_len < n_dims)
+  if (!ra_idx (ra_idx_len - 1).orig_empty () && ra_idx_len < n_dims)
     frozen_lengths = short_freeze (ra_idx, dimensions, resize_ok);
   else
     {