diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index 6d4d17c2223d..39009fe83c1b 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -3578,7 +3578,8 @@ void CheckBox::SetState( TriState eState ) { meState = eState; StateChanged( StateChangedType::State ); - Toggle(); + if (eState != TRISTATE_INDET) // just removing Toggle() fails at the ui test /tdf65334.py + Toggle(); } }