changeset 3050:8ae394247559

[project @ 1997-06-10 17:09:47 by jwe]
author jwe
date Tue, 10 Jun 1997 17:09:47 +0000
parents 4d275e0a0576
children 8bc313194436
files liboctave/Array2-idx.h liboctave/ChangeLog
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/Array2-idx.h
+++ b/liboctave/Array2-idx.h
@@ -118,7 +118,7 @@
 	  if (idx.is_colon ())
 	    {
 	      result_nr = nr * nc;
-	      result_nc = 1;
+	      result_nc = result_nr ? 1 : 0;
 	    }
 	  else if (idx.one_zero_only ())
 	    {
--- a/liboctave/ChangeLog
+++ b/liboctave/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jun 10 10:58:05 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* Array2-idx.h: Correctly handle empty matrices indexed by a
+	single colon.
+
 Fri Jun  6 04:27:40 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* lo-mappers.cc (xlgamma): Use F77_XFCN function to call dlgams.