diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-07-06 08:19:53 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-07-06 08:19:53 +0000 |
commit | 7fa6caae06664e85db79014d4d6622051ca5561e (patch) | |
tree | 3a554c22c58cfe6e616516607787db1fc3df4435 /vcl/source/control | |
parent | d20ceede1b3b51a9491b799980055fd4a8cf3f3a (diff) |
INTEGRATION: CWS vcl41 (1.38.88); FILE MERGED
2005/06/21 14:14:02 ssa 1.38.88.1: #i48629# as there is no checked pushbutton on native platforms the checked state will be rendered by NWF as being pressed
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/button.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index 6a3770d0d6e0..4945bef25397 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -2,9 +2,9 @@ * * $RCSfile: button.cxx,v $ * - * $Revision: 1.38 $ + * $Revision: 1.39 $ * - * last change: $Author: obo $ $Date: 2005-04-12 12:18:06 $ + * last change: $Author: obo $ $Date: 2005-07-06 09:19:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1365,7 +1365,7 @@ void PushButton::ImplDrawPushButton( bool bLayout ) Region aCtrlRegion( aInRect ); ControlState nState = 0; - if ( mbPressed ) nState |= CTRL_STATE_PRESSED; + if ( mbPressed || IsChecked() ) nState |= CTRL_STATE_PRESSED; if ( ImplGetButtonState() & BUTTON_DRAW_PRESSED ) nState |= CTRL_STATE_PRESSED; if ( HasFocus() ) nState |= CTRL_STATE_FOCUSED; if ( ImplGetButtonState() & BUTTON_DRAW_DEFAULT ) nState |= CTRL_STATE_DEFAULT; |