Mercurial > octave
changeset 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 | a103cfd738c5 |
children | 67cad4e8f866 |
files | scripts/gui/uifigure.m |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/gui/uifigure.m Wed Sep 21 13:48:27 2022 -0700 +++ b/scripts/gui/uifigure.m Wed Sep 21 09:55:32 2022 -0400 @@ -61,7 +61,9 @@ addproperty ("Scrollable", h, "boolean", "off"); ## Apply any overrides. - set (h, varargin{:}); + if (! isempty (varargin)) + set (h, varargin{:}); + endif endfunction