# HG changeset patch # User Michael Goffioul # Date 1220195660 14400 # Node ID bac1061a36bc15de44801eec2724740680c4bd8e # Parent a028a5960e1896b2ccc84507e3397829666ce0df Do not call "set" with empty arguments diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,9 @@ +2008-08-31 Michael Goffioul + + * 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 * plot/__plt2mm__.m, plot/__plt2mv__.m, plot/__plt2ss__.m, diff --git a/scripts/plot/__plt2mm__.m b/scripts/plot/__plt2mm__.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"); diff --git a/scripts/plot/__plt2mv__.m b/scripts/plot/__plt2mv__.m --- 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"); diff --git a/scripts/plot/__plt2ss__.m b/scripts/plot/__plt2ss__.m --- 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 diff --git a/scripts/plot/__plt2sv__.m b/scripts/plot/__plt2sv__.m --- 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"); diff --git a/scripts/plot/__plt2vm__.m b/scripts/plot/__plt2vm__.m --- 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"); diff --git a/scripts/plot/__plt2vs__.m b/scripts/plot/__plt2vs__.m --- 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"); diff --git a/scripts/plot/__plt2vv__.m b/scripts/plot/__plt2vv__.m --- 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