# HG changeset patch # User Markus Mützel # Date 1669717076 -3600 # Node ID 7d7e04fc21ba297c07c0ba6f5dda829776a71b09 # Parent 24b71381cbfa933ea1062d29dfcb80bc4e3f51a3 uitable: Avoid crash with Boolean values (bug #63388). * libgui/graphics/qt-graphics-toolkit.cc (qt_graphics_toolkit::update): Redraw entire uitable on data update. diff -r 24b71381cbfa -r 7d7e04fc21ba libgui/graphics/qt-graphics-toolkit.cc --- 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);