comparison scripts/gui/uifigure.m @ 31237:e3016248ca5d

uifigure.m: Call set () only if varargin is not empty (bug #63088) * uifigure.m: Call set () only if varargin is not empty.
author John Donoghue <john.donoghue@ieee.org>
date Wed, 21 Sep 2022 09:55:32 -0400
parents f44e19671777
children 597f3ee61a48
comparison
equal deleted inserted replaced
31236:a103cfd738c5 31237:e3016248ca5d
59 ## FIXME: There is no implementation behind these properties. 59 ## FIXME: There is no implementation behind these properties.
60 addproperty ("AutoResizeChildren", h, "boolean", "on"); 60 addproperty ("AutoResizeChildren", h, "boolean", "on");
61 addproperty ("Scrollable", h, "boolean", "off"); 61 addproperty ("Scrollable", h, "boolean", "off");
62 62
63 ## Apply any overrides. 63 ## Apply any overrides.
64 set (h, varargin{:}); 64 if (! isempty (varargin))
65 set (h, varargin{:});
66 endif
65 67
66 endfunction 68 endfunction
67 69
68 70
69 %!test 71 %!test