# HG changeset patch # User Ben Abbott # Date 1290084423 18000 # Node ID 1ddf64be9cbd341d3891ba70f0f476fc144d8064 # Parent 1ed677b95226294fc1df68dc52a365fec45d0dc6 __print_parse_opts__.m: For tests, allow __print_parse_opts__ to run with no inputs. diff -r 1ed677b95226 -r 1ddf64be9cbd scripts/ChangeLog --- a/scripts/ChangeLog Thu Nov 18 04:05:43 2010 -0500 +++ b/scripts/ChangeLog Thu Nov 18 07:47:03 2010 -0500 @@ -1,3 +1,8 @@ +2010-11-18 Ben Abbott + + * plot/__print_parse_opts__.m: For tests, allow __print_parse_opts__ + to run with no inputs. + 2010-11-17 Ben Abbott * general/subsindex.m: Fix typo in doc-string. diff -r 1ed677b95226 -r 1ddf64be9cbd scripts/plot/__print_parse_opts__.m --- a/scripts/plot/__print_parse_opts__.m Thu Nov 18 04:05:43 2010 -0500 +++ b/scripts/plot/__print_parse_opts__.m Thu Nov 18 07:47:03 2010 -0500 @@ -71,7 +71,7 @@ endif arg_st.unlink = {}; - if (isfigure (varargin{1})) + if (nargin > 0 && isfigure (varargin{1})) arg_st.figure = varargin{1}; varargin(1) = []; endif