summaryrefslogtreecommitdiff
path: root/vcl/source/control/button.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r--vcl/source/control/button.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 3015c65f1b0c..49dd0c204dbb 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -1186,8 +1186,7 @@ void PushButton::Tracking( const TrackingEvent& rTEvt )
// do not call Click handler if aborted
if ( !rTEvt.IsTrackingCanceled() )
{
- if ( ! ( ( GetStyle() & WB_REPEAT ) &&
- ! ( GetStyle() & WB_TOGGLE ) ) )
+ if ( ! ( GetStyle() & WB_REPEAT ) || ( GetStyle() & WB_TOGGLE ) )
Click();
}
}
@@ -1269,8 +1268,7 @@ void PushButton::KeyUp( const KeyEvent& rKEvt )
Invalidate();
- if ( !( ( GetStyle() & WB_REPEAT ) &&
- ! ( GetStyle() & WB_TOGGLE ) ) )
+ if ( !( GetStyle() & WB_REPEAT ) || ( GetStyle() & WB_TOGGLE ) )
Click();
}
else