__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 diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -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
+++ b/scripts/plot/__print_parse_opts__.m
@@ -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