# HG changeset patch # User John W. Eaton # Date 1223480126 14400 # Node ID 4c85b8056d0bc57d795fa5e9f88787ca45a1db9f # Parent 32e9e8103390532874051b0ce02a79aee279ac93 delete.m: pass array of handles to __go_delete__ diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-10-07 John W. Eaton + + * miscellaneous/delete.m: Pass array of handles to __go_delete__. + 2008-10-06 John W. Eaton * plot/__add_datasource__.m, plot/__axes_limits__.m, diff --git a/scripts/miscellaneous/delete.m b/scripts/miscellaneous/delete.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