changeset 30924:e219aacda1e5 stable

hdl2struct.m: Fix saving of uibuttongroups (bug #62266). * hdl2struct.m (getprops): Add "selectedobject" to list of properties which should be excluded from saving.
author Rik <rik@octave.org>
date Sun, 10 Apr 2022 14:34:05 -0700
parents 84fa12727b43
children 18bf227e5af5 5044c6918fdf
files scripts/plot/util/hdl2struct.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/hdl2struct.m	Fri Apr 08 19:55:41 2022 +0200
+++ b/scripts/plot/util/hdl2struct.m	Sun Apr 10 14:34:05 2022 -0700
@@ -145,13 +145,13 @@
   persistent excluded;
 
   if (isempty (excluded))
-    excluded = cell2struct (repmat ({[]}, 1, 16),
+    excluded = cell2struct (repmat ({[]}, 1, 17),
                             {"beingdeleted", "busyaction", "buttondownfcn", ...
                              "children", "clipping", "contextmenu", ...
                              "createfcn", "deletefcn", "handlevisibility", ...
                              "hittest", "interruptible", "parent", ...
-                             "selected" , "selectionhighlight", "type", ...
-                             "uicontextmenu"}, 2);
+                             "selected" , "selectionhighlight", ...
+                             "selectedobject", "type", "uicontextmenu"}, 2);
   endif
 
   obj = get (h);