diff options
Diffstat (limited to 'vcl/osx/salnativewidgets.cxx')
-rw-r--r-- | vcl/osx/salnativewidgets.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx index bc0f390d0fc1..a9d263f3c476 100644 --- a/vcl/osx/salnativewidgets.cxx +++ b/vcl/osx/salnativewidgets.cxx @@ -328,15 +328,9 @@ UInt32 AquaSalGraphics::getState( ControlState nState ) const bool bDrawActive = mpFrame == nullptr || [mpFrame->getNSWindow() isKeyWindow]; if( !(nState & ControlState::ENABLED) || ! bDrawActive ) { - if( ! (nState & ControlState::HIDDEN) ) - return kThemeStateInactive; - else - return kThemeStateUnavailableInactive; + return kThemeStateInactive; } - if( nState & ControlState::HIDDEN ) - return kThemeStateUnavailable; - if( nState & ControlState::PRESSED ) return kThemeStatePressed; |