Mercurial > hg > octave-lojdl
changeset 8076:bac1061a36bc
Do not call "set" with empty arguments
author | Michael Goffioul |
---|---|
date | Sun, 31 Aug 2008 11:14:20 -0400 |
parents | a028a5960e18 |
children | a4e03f9b4b8a |
files | scripts/ChangeLog scripts/plot/__plt2mm__.m scripts/plot/__plt2mv__.m scripts/plot/__plt2ss__.m scripts/plot/__plt2sv__.m scripts/plot/__plt2vm__.m scripts/plot/__plt2vs__.m scripts/plot/__plt2vv__.m |
diffstat | 8 files changed, 27 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,9 @@ +2008-08-31 Michael Goffioul <michael.goffioul@gmail.com> + + * plot/__plt2mm__.m, plot/__plt2mv__.m, plot/__plt2ss__.m, + plot/__plt2sv__.m, plot/__plt2vm__.m, plot/__plt2vs__.m, + plot/__plt2vv__.m: Do not call "set" with empty arguments. + 2008-08-29 David Bateman <dbateman@free.fr> * plot/__plt2mm__.m, plot/__plt2mv__.m, plot/__plt2ss__.m,
--- a/scripts/plot/__plt2mm__.m +++ b/scripts/plot/__plt2mm__.m @@ -65,7 +65,9 @@ "marker", options(i).marker, "parent", hg); __add_line_series__ (h, hg); - set (hg, args {:}); + if (! isempty( args)) + set (hg, args {:}); + endif endfor else error ("__plt2mm__: arguments must be a matrices");
--- a/scripts/plot/__plt2mv__.m +++ b/scripts/plot/__plt2mv__.m @@ -81,7 +81,9 @@ "marker", options(i).marker, "parent", hg); __add_line_series__ (h, hg); - set (hg, args{:}); + if (! isempty (args)) + set (hg, args{:}); + endif endfor else error ("__plt2mv__: arguments must be a matrices");
--- a/scripts/plot/__plt2ss__.m +++ b/scripts/plot/__plt2ss__.m @@ -62,7 +62,9 @@ "marker", options.marker, "parent", hg); __add_line_series__ (h, hg); - set (hg, properties{:}); + if (! isempty (properties)) + set (hg, properties{:}); + endif else error ("__plt2ss__: arguments must be scalars"); endif
--- a/scripts/plot/__plt2sv__.m +++ b/scripts/plot/__plt2sv__.m @@ -61,7 +61,9 @@ "marker", options(i).marker, "parent", hg); __add_line_series__ (h, hg); - set (hg, args{:}); + if (! isempty(args)) + set (hg, args{:}); + endif endfor else error ("__plt2sv__: first arg must be scalar, second arg must be vector");
--- a/scripts/plot/__plt2vm__.m +++ b/scripts/plot/__plt2vm__.m @@ -81,7 +81,9 @@ "marker", options(i).marker, "parent", hg); __add_line_series__ (h, hg); - set (hg, args{:}); + if (! isempty (args)) + set (hg, args{:}); + endif endfor else error ("__plt2vm__: arguments must be a matrices");
--- a/scripts/plot/__plt2vs__.m +++ b/scripts/plot/__plt2vs__.m @@ -61,7 +61,9 @@ "marker", options(i).marker, "parent", hg); __add_line_series__ (h, hg); - set (hg, args{:}); + if (! isempty (args)) + set (hg, args{:}); + endif endfor else error ("__plt2vs__: first arg must be vector, second arg must be scalar");
--- a/scripts/plot/__plt2vv__.m +++ b/scripts/plot/__plt2vv__.m @@ -76,7 +76,9 @@ "marker", options.marker, "parent", hg); __add_line_series__ (h, hg); - set (hg, properties{:}); + if (! isempty (properties)) + set (hg, properties{:}); + endif else error ("__plt2vv__: vector lengths must match"); endif