From 7fa6caae06664e85db79014d4d6622051ca5561e Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Wed, 6 Jul 2005 08:19:53 +0000 Subject: 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 --- vcl/source/control/button.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vcl') 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; -- cgit v1.2.3