Mercurial > hg > octave-terminal
changeset 8197:4c85b8056d0b
delete.m: pass array of handles to __go_delete__
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 08 Oct 2008 11:35:26 -0400 |
parents | 32e9e8103390 |
children | 5ac184c05811 |
files | scripts/ChangeLog scripts/miscellaneous/delete.m |
diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-10-07 John W. Eaton <jwe@octave.org> + + * miscellaneous/delete.m: Pass array of handles to __go_delete__. + 2008-10-06 John W. Eaton <jwe@octave.org> * plot/__add_datasource__.m, plot/__axes_limits__.m,
--- a/scripts/miscellaneous/delete.m +++ b/scripts/miscellaneous/delete.m @@ -31,11 +31,9 @@ if (nargin == 1) if (ischar (arg)) unlink (arg); - elseif (all (ishandle (arg))) + elseif (all (ishandle (arg(:)))) ## Delete a graphics object. - for n = 1:numel(arg) - __go_delete__ (arg(n)); - endfor + __go_delete__ (arg); else error ("delete: expecting argument to be a filename or graphics handle"); endif