Mercurial > hg > octave-lyh
diff scripts/plot/__add_datasource__.m @ 8190:73d6b71788c0
use case-insensitive comparison for graphics properties; misc style fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 06 Oct 2008 21:06:05 -0400 |
parents | 9f10a7b28ae3 |
children | 79c874fe5100 |
line wrap: on
line diff
--- a/scripts/plot/__add_datasource__.m +++ b/scripts/plot/__add_datasource__.m @@ -36,14 +36,14 @@ newargs = {}; while (i < numel (varargin)) arg = varargin{++i}; - if (i != numel(varargin) && ischar (arg) && - length (arg > 1) && strcmpi (arg(2:end), "datasource")) + if (i != numel(varargin) && ischar (arg) + && length (arg) > 1 && strcmpi (arg(2:end), "datasource")) arg = tolower (arg); val = varargin{++i}; if (ischar (val)) - set (h, arg, val); + set (h, arg, val); else - error ("%s: expecting data source to be a string", fcn); + error ("%s: expecting data source to be a string", fcn); endif else newargs{end + 1} = arg;