function detarget(h,Constr)
%DETARGET  Detargets edit dialog when deleting constraint.

%   Authors: P. Gahinet
%   Copyright 1986-2002 The MathWorks, Inc. 
%   $Revision: 1.1.6.2 $ $Date: 2004/12/10 19:33:17 $

% RE: h = @tooleditor handle

if isequal(h.Container,h.Dialog.Container)
    % Deleted constraint belongs to currently targeted container: retarget as appropriate
    h.Dialog.target(h.Container);
end

