Mercurial > hg > octave-shane
changeset 7556:c69d4732d877
print.m: fix oops in applying last change (really, I mean it this time)
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 04 Mar 2008 22:42:27 -0500 |
parents | df583cd2f21e |
children | 2ba84879f961 |
files | scripts/plot/print.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/print.m +++ b/scripts/plot/print.m @@ -187,11 +187,11 @@ size = arg(3:length(arg)); elseif (length (arg) >= 1 && arg(1) == "-") error ("print: unknown option `%s'", arg); + elseif (length (arg) > 0) + name = arg; endif elseif (ishandle (arg)) figure (arg); - elseif (length (arg) > 0) - name = arg; else error ("print: expecting inputs to be character string options or a figure handle"); endif