function aObj = enddrag(aObj)
%AXISTEXT/ENDDRAG

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.6 $  $Date: 2000/06/01 02:52:30 $

savedState = get(aObj,'SavedState');
if ~savedState.DataUnitDrag
   aObj = set(aObj,'Units',savedState.OldUnits);
end

axischildObj = aObj.axischild;
aObj.axischild = enddrag(axischildObj);

