Mercurial > octave
changeset 31585:7d7e04fc21ba stable
uitable: Avoid crash with Boolean values (bug #63388).
* libgui/graphics/qt-graphics-toolkit.cc (qt_graphics_toolkit::update): Redraw
entire uitable on data update.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 29 Nov 2022 11:17:56 +0100 |
parents | 24b71381cbfa |
children | 87a8c7e2f20f 9d3dadf6f330 |
files | libgui/graphics/qt-graphics-toolkit.cc |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/graphics/qt-graphics-toolkit.cc Mon Nov 28 19:54:09 2022 -0800 +++ b/libgui/graphics/qt-graphics-toolkit.cc Tue Nov 29 11:17:56 2022 +0100 @@ -180,11 +180,16 @@ if (proxy) { - if (go.isa ("uicontrol") - && pId == uicontrol::properties::ID_STYLE) + if ((go.isa ("uicontrol") + && pId == uicontrol::properties::ID_STYLE) + || (go.isa ("uitable") + && pId == uitable::properties::ID_DATA)) { // Special case: we need to recreate the control widget // associated with the octave graphics_object + // FIXME: For uitable, it would only be necessary to recreate + // the table widget if the type of the displayed values changes + // between Boolean and non-Boolean (bug #63388). finalize (go); initialize (go);