diff options
Diffstat (limited to 'vcl/source/window/decoview.cxx')
-rw-r--r-- | vcl/source/window/decoview.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx index f7879511b79b..b2c494390d09 100644 --- a/vcl/source/window/decoview.cxx +++ b/vcl/source/window/decoview.cxx @@ -531,7 +531,7 @@ void ImplDrawButton( OutputDevice *const pDev, tools::Rectangle aFillRect, ImplDraw2ColorFrame( pDev, aFillRect, aColor1, aColor2 ); - if ( !((nStyle & BUTTON_DRAW_FLATTEST) == DrawButtonFlags::Flat) ) + if ( (nStyle & BUTTON_DRAW_FLATTEST) != DrawButtonFlags::Flat ) { if ( nStyle & (DrawButtonFlags::Pressed | DrawButtonFlags::Checked) ) { |