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	Fri Aug 29 15:48:44 2008 -0400
+++ b/scripts/ChangeLog	Sun Aug 31 11:14:20 2008 -0400
@@ -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	Fri Aug 29 15:48:44 2008 -0400
+++ b/scripts/plot/__plt2mm__.m	Sun Aug 31 11:14:20 2008 -0400
@@ -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	Fri Aug 29 15:48:44 2008 -0400
+++ b/scripts/plot/__plt2mv__.m	Sun Aug 31 11:14:20 2008 -0400
@@ -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	Fri Aug 29 15:48:44 2008 -0400
+++ b/scripts/plot/__plt2ss__.m	Sun Aug 31 11:14:20 2008 -0400
@@ -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	Fri Aug 29 15:48:44 2008 -0400
+++ b/scripts/plot/__plt2sv__.m	Sun Aug 31 11:14:20 2008 -0400
@@ -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	Fri Aug 29 15:48:44 2008 -0400
+++ b/scripts/plot/__plt2vm__.m	Sun Aug 31 11:14:20 2008 -0400
@@ -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	Fri Aug 29 15:48:44 2008 -0400
+++ b/scripts/plot/__plt2vs__.m	Sun Aug 31 11:14:20 2008 -0400
@@ -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	Fri Aug 29 15:48:44 2008 -0400
+++ b/scripts/plot/__plt2vv__.m	Sun Aug 31 11:14:20 2008 -0400
@@ -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