Mercurial > octave-nkf
changeset 11268:1ddf64be9cbd
__print_parse_opts__.m: For tests, allow __print_parse_opts__ to run with no inputs.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 18 Nov 2010 07:47:03 -0500 |
parents | 1ed677b95226 |
children | 628b03328765 |
files | scripts/ChangeLog scripts/plot/__print_parse_opts__.m |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <bpabbott@mac.com> + + * plot/__print_parse_opts__.m: For tests, allow __print_parse_opts__ + to run with no inputs. + 2010-11-17 Ben Abbott <bpabbott@mac.com> * general/subsindex.m: Fix typo in doc-string.
--- 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