# HG changeset patch # User jwe # Date 1199910479 0 # Node ID 4e291a77212aa3e322923dc714020d5cf822cab9 # Parent 60c1f62b07a587a7e2e48d8825821fa552ea8094 [project @ 2008-01-09 20:27:59 by jwe] diff -r 60c1f62b07a5 -r 4e291a77212a scripts/ChangeLog --- a/scripts/ChangeLog Wed Jan 09 17:23:32 2008 +0000 +++ b/scripts/ChangeLog Wed Jan 09 20:27:59 2008 +0000 @@ -1,3 +1,8 @@ +2008-01-09 John W. Eaton + + * plot/drawnow.m: Fail if filename includes a directory part that + does not exist. + 2008-01-07 John W. Eaton * miscellaneous/copyfile.m, miscellaneous/movefile.m: diff -r 60c1f62b07a5 -r 4e291a77212a scripts/plot/drawnow.m --- a/scripts/plot/drawnow.m Wed Jan 09 17:23:32 2008 +0000 +++ b/scripts/plot/drawnow.m Wed Jan 09 20:27:59 2008 +0000 @@ -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);