# HG changeset patch # User Ben Abbott # Date 1220204758 14400 # Node ID f7bb47ee22c305cffce976a57b6f2debb43abb63 # Parent a4e03f9b4b8ad5926df241e267861c27a0573e87 Fix "set" call with empty arguments. diff -r a4e03f9b4b8a -r f7bb47ee22c3 scripts/ChangeLog --- a/scripts/ChangeLog Sun Aug 31 11:14:34 2008 -0400 +++ b/scripts/ChangeLog Sun Aug 31 13:45:58 2008 -0400 @@ -1,3 +1,8 @@ +2008-08-31 Ben Abbott + + * plot/__add_datasource__.m: preserve property name/value pairs. + * plot/__bars__.m: Do not call "set" with empty arguments. + 2008-08-31 Michael Goffioul * plot/__plt2mm__.m, plot/__plt2mv__.m, plot/__plt2ss__.m, diff -r a4e03f9b4b8a -r f7bb47ee22c3 scripts/plot/__add_datasource__.m --- a/scripts/plot/__add_datasource__.m Sun Aug 31 11:14:34 2008 -0400 +++ b/scripts/plot/__add_datasource__.m Sun Aug 31 13:45:58 2008 -0400 @@ -46,6 +46,7 @@ endif else newargs{end + 1} = arg; + newargs{end + 1} = varargin{i++}; endif endwhile endfunction diff -r a4e03f9b4b8a -r f7bb47ee22c3 scripts/plot/__bars__.m --- a/scripts/plot/__bars__.m Sun Aug 31 11:14:34 2008 -0400 +++ b/scripts/plot/__bars__.m Sun Aug 31 13:45:58 2008 -0400 @@ -113,7 +113,9 @@ addproperty ("bargroup", hg, "data"); set (tmp, "bargroup", tmp); - set (hg, args{:}); + if (! isempty( args)) + set (hg, args{:}); + endif if (i == 1) set (h_baseline, "parent", get (hg, "parent")); endif