changeset 7235:ee0820d8b4ac

[project @ 2007-12-01 00:49:32 by jwe]
author jwe
date Sat, 01 Dec 2007 00:49:33 +0000
parents 6992e9face25
children 3ac12f33cf4b
files scripts/ChangeLog scripts/plot/__scatter__.m
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Fri Nov 30 20:45:42 2007 +0000
+++ b/scripts/ChangeLog	Sat Dec 01 00:49:33 2007 +0000
@@ -5,6 +5,8 @@
 
 2007-11-30  David Bateman  <dbateman@free.fr>
 
+	* plot/__scatter__.m: Avoid out of bounds varargin element access.
+
 	* plot/__go_draw_axes__.m (do_tics_1): regexprep the cell array of
 	tick labels rather than one by one on the labels themselves.
 	* plot/pareto.m: Bug in numerical labels fixed. Bug in search for
--- a/scripts/plot/__scatter__.m	Fri Nov 30 20:45:42 2007 +0000
+++ b/scripts/plot/__scatter__.m	Sat Dec 01 00:49:33 2007 +0000
@@ -42,7 +42,7 @@
     endif
   endfor
 
-  if (firstnonnumeric > istart)
+  if (istart < nargin && firstnonnumeric > istart)
     s = varargin{istart};
     if (isempty (s))
       s = 8;