Mercurial > hg > octave-nkf
changeset 11609:c3d1d911dfa8 release-3-0-x
[3-0-0-branch @ 2008-01-09 20:27:33 by jwe]
author | jwe |
---|---|
date | Wed, 09 Jan 2008 20:27:33 +0000 |
parents | e20f4ad90c7e |
children | 14142d084366 |
files | scripts/ChangeLog scripts/plot/drawnow.m |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,9 @@ +2008-01-09 John W. Eaton <jwe@octave.org> + + * plot/drawnow.m: Fail if filename includes a directory part that + does not exist. + + 2008-01-07 John W. Eaton <jwe@octave.org> * miscellaneous/copyfile.m, miscellaneous/movefile.m:
--- a/scripts/plot/drawnow.m +++ b/scripts/plot/drawnow.m @@ -43,6 +43,10 @@ endif if (nargin >= 2 && nargin <= 4) + [dnm, fnm, ext] = fileparts (file); + if (! (isempty (dnm) || isdir (dnm))) + error ("drawnow: nonexistent directory `%s'", dnm); + endif h = get (0, "currentfigure"); if (h) f = get (h);