Mercurial > hg > octave-terminal
changeset 10598:6e1674216b99
close.m: No error on "close([])".
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sun, 02 May 2010 10:20:36 -0400 |
parents | ba346313bdc1 |
children | d0e0bb2ebebb |
files | scripts/ChangeLog scripts/plot/close.m |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-05-02 Peter van den Biggelaar <peter@biglr.net> + + * plot/close.m: No error on "close([])". + 2010-05-01 Ben Abbott <bpabbott@mac.com> * plot/__go_draw_axes__.m: Remove gnuplot errorbar code.
--- a/scripts/plot/close.m +++ b/scripts/plot/close.m @@ -28,6 +28,7 @@ ## @end deftypefn ## Author: jwe +## 2010-05-02 PBig allow empty argument function retval = close (arg1, arg2) @@ -45,6 +46,8 @@ close_all_figures (false); elseif (isfigure (arg1)) figs = arg1; + elseif (isempty(arg1)) + figs = []; else error ("close: expecting argument to be \"all\" or a figure handle"); endif