function aObj = enddrag(aObj)
%AXISTEXT/ENDDRAG

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.5 $  $Date: 1998/10/21 21:45:27 $

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

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

