changeset 322:d93ab6bf48d7

[project @ 1994-02-02 04:30:42 by jwe]
author jwe
date Wed, 02 Feb 1994 04:30:42 +0000
parents 2d04965c32fb
children b851a7712cc7
files src/pt-plot.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/pt-plot.cc	Tue Feb 01 02:09:52 1994 +0000
+++ b/src/pt-plot.cc	Wed Feb 02 04:30:42 1994 +0000
@@ -1,7 +1,7 @@
 // tree-plot.cc                                         -*- C++ -*-
 /*
 
-Copyright (C) 1992, 1993 John W. Eaton
+Copyright (C) 1992, 1993, 1994 John W. Eaton
 
 This file is part of Octave.
 
@@ -534,7 +534,7 @@
 
 	      int n = NINT (val);
 
-	      if (n > n_max || n < 1)
+	      if (n < 1 || n_max > 0 && n > n_max)
 		{
 		  ::error ("using: column %d out of range", n); 
 		  return -1;