[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44670] hgload can't open Matlab figures

From: Guillaume
Subject: [Octave-bug-tracker] [bug #44670] hgload can't open Matlab figures
Date: Fri, 19 Jul 2019 07:28:47 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #36, bug #44670 (project octave):

This small change fixes the issue described in comment #30 about
uicontextmenu: it is now assigned to the components whose handles are listed
in the "special" field as per Matlab's behavior.

diff -r 378d3c91f85b scripts/plot/util/struct2hdl.m
--- a/scripts/plot/util/struct2hdl.m    Thu Jul 18 12:59:57 2019 -0400
+++ b/scripts/plot/util/struct2hdl.m    Fri Jul 19 12:24:04 2019 +0100
@@ -172,6 +172,9 @@
       s.properties = rmfield (s.properties, "extent");
     [h, s] = createui (s, par);
+    if (strcmp (s.type, "uicontextmenu"))
+      set (p(2, ismember (p(1,:), s.special)), 'UIContextMenu', h);
+    endif
     error ("struct2hdl: %s objects are not implemented yet", s.type);


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]