diff options
-rw-r--r-- | forms/source/component/Button.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/component/Button.cxx b/forms/source/component/Button.cxx index 3ede9e4b5b23..2c248d5a5c7f 100644 --- a/forms/source/component/Button.cxx +++ b/forms/source/component/Button.cxx @@ -713,7 +713,7 @@ void OButtonControl::featureStateChanged( sal_Int16 _nFeatureId, bool _bEnabled // enable or disable our peer, according to the new state Reference< XVclWindowPeer > xPeer( getPeer(), UNO_QUERY ); if ( xPeer.is() ) - xPeer->setProperty( PROPERTY_ENABLED, makeAny( m_bEnabledByPropertyValue ? _bEnabled : sal_False ) ); + xPeer->setProperty( PROPERTY_ENABLED, makeAny( m_bEnabledByPropertyValue && _bEnabled ) ); // if we're disabled according to our model's property, then // we don't care for the feature state, but *are* disabled. // If the model's property states that we're enabled, then we *do* |