function tempqfilt = gettempqfilt(ud)
%GETTEMPQFILT Get tempqfilt.
%   GETTEMPQFILT(UD) gets a temporary qfilt from the figure user data
%   UD, or creates one if it does not already exist in UD.  The
%   temporary qfilt is used to store the current state of the quantized
%   page until the "apply" button is pressed.

%   Thomas A. Bryan, 12 November 1999
%   Copyright 1988-2000 The MathWorks, Inc.
%   $Revision: 1.1 $  $Date: 2000/06/15 20:04:53 $
if isfield(ud.specs.quantize,'tempqfilt')
  tempqfilt = ud.specs.quantize.tempqfilt;
else
  % One did not already exist, so make one
  wrn = warning('off');
  tempqfilt = qfilt;
  warning(wrn)
end
