# HG changeset patch # User Markus Mützel # Date 1669717076 -3600 # Tue Nov 29 11:17:56 2022 +0100 # Node ID 447963cec02108a418a4157165a19e8671d9cd17 # Parent 3ebddad34afd580e8a9ededfca92bdde6bb36ad3 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 3ebddad34afd -r 447963cec021 libgui/graphics/qt-graphics-toolkit.cc --- a/libgui/graphics/qt-graphics-toolkit.cc Tue Nov 29 09:28:04 2022 +0100 +++ 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 control widget if the type changes between Boolean and + // non-Boolean (bug #63388). finalize (go); initialize (go);