function saverevertinfo(hFig)
%SAVEREVERTINFO Makes a copy of the information in ud that we need for reverting and
%               stores it in ud.revert.  It also sets the undochanges flas to false.
%
% Input:
%   hFig   - Handle to the Filter Design GUI figure.

%   Author(s): P. Pacheco
%   Copyright 1988-2000 The MathWorks, Inc.
%   $Revision: 1.3 $  $Date: 2000/06/13 21:23:36 $ 

% Cache GUI's data structure.
ud = get(hFig,'UserData');

% Make copy of info to potentially revert to.
ud.revert.design   = ud.specs.design;
ud.revert.import   = ud.specs.import;

% Only do the following if the Filter Design Tbx is installed.
if ud.flags.fdqexists,
    ud.revert.quantize = ud.specs.quantize;
    ud.flags.undochanges.quantize = 0;
end

% Set all the revert flags to false - disable revert option.
ud.flags.undochanges.design   = 0;
ud.flags.undochanges.import   = 0;

set(hFig,'Userdata',ud);

% [EOF] saverevertinfo.m

