# HG changeset patch # User jwe # Date 760163442 0 # Node ID d93ab6bf48d7e2e8d981489179d77bebd763aa08 # Parent 2d04965c32fb7e4f640ed687adb70b1c1f987660 [project @ 1994-02-02 04:30:42 by jwe] diff --git a/src/pt-plot.cc b/src/pt-plot.cc --- a/src/pt-plot.cc +++ b/src/pt-plot.cc @@ -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;