diff 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
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