function restorepointers( pj )
%RESTOREPOINTERS Restore Pointers of all open Figures. 
%   PREPAREPOINTERS previously set all Figure Pointers to Watch.
%
%   See also PREPAREPOINTERS.

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.2 $  $Date: 1998/09/02 19:41:28 $

%Make sure we set pointer(s) back even if we are erroring out.
switch length(pj.AllFigures)
  case 0
    %NOP
  case 1
    set( pj.AllFigures, 'pointer', pj.AllPointers )
  otherwise
    set( pj.AllFigures, {'pointer'}, pj.AllPointers )
end
