diff liboctave/dMatrix.cc @ 4293:977f977fb2c3

[project @ 2003-01-06 18:18:14 by jwe]
author jwe
date Mon, 06 Jan 2003 18:18:14 +0000
parents 52ce979331fe
children a9560cebae6e
line wrap: on
line diff
--- a/liboctave/dMatrix.cc	Sun Jan 05 07:50:29 2003 +0000
+++ b/liboctave/dMatrix.cc	Mon Jan 06 18:18:14 2003 +0000
@@ -2443,6 +2443,16 @@
 	      oct_data_conv::data_type dt, int skip,
 	      oct_mach_info::float_format flt_fmt)
 {
+  if (nr == 0 || nc == 0)
+    {
+      if (nr >= 0 && nc >= 0)
+	resize (nr, nc);
+      else
+	resize (0, 0);
+
+      return 0;
+    }
+
   int retval = -1;
 
   bool ok = true;