[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58544] Frame uicontrol cannot be deleted
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #58544] Frame uicontrol cannot be deleted |
Date: |
Sun, 14 Jun 2020 11:22:12 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0 |
Follow-up Comment #5, bug #58544 (project octave):
IIRC, "frame" is unimplemented and has been here for compatibility with old
versions of matlab.
The following diff fixes the issue for me:
diff -r a6c89130cfaa libgui/graphics/qt-graphics-toolkit.cc
--- a/libgui/graphics/qt-graphics-toolkit.cc Sun Jun 14 11:17:33 2020
+0200
+++ b/libgui/graphics/qt-graphics-toolkit.cc Sun Jun 14 17:18:41 2020
+0200
@@ -121,7 +121,7 @@
qt_graphics_toolkit::initialize (const graphics_object& go)
{
if (go.isa ("figure")
- || go.isa ("uicontrol")
+ || (go.isa ("uicontrol") && go.get ("style").string_value () !=
"frame")
|| go.isa ("uipanel")
|| go.isa ("uibuttongroup")
|| go.isa ("uimenu")
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58544>
_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/