diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index b554aff1993c..056821829c32 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -443,6 +443,13 @@ public: virtual Reference< css::accessibility::XAccessible > CreateAccessible() override; + virtual void StateChanged(StateChangedType nStateChange) override + { + if (nStateChange == StateChangedType::Enable) + m_xWidget->set_sensitive(IsEnabled()); + InterimItemWindow::StateChanged(nStateChange); + } + virtual void set_sensitive(bool bSensitive) override { m_xWidget->set_sensitive(bSensitive);