diff options
author | Thomas Lange [tl] <tl@openoffice.org> | 2010-05-20 11:04:13 +0200 |
---|---|---|
committer | Thomas Lange [tl] <tl@openoffice.org> | 2010-05-20 11:04:13 +0200 |
commit | 6641398317d5f6681b2cf1715e834a1393038fe1 (patch) | |
tree | f0b1381f8f2efd41053deadac54d4148744677ba /vcl/source | |
parent | ec12d2bb2aeee7ec44119263bae3b04aad02b98c (diff) |
cws tl79: #i111422# pre-notify for 'Toggle' of check box
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/control/button.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index 1f45b5902381..5b15330ed927 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -3675,11 +3675,14 @@ void CheckBox::ImplCheck() else eNewState = STATE_NOCHECK; meState = eNewState; - ImplInvalidateOrDrawCheckBoxState(); ImplDelData aDelData; ImplAddDel( &aDelData ); - Toggle(); + if( (GetStyle() & WB_EARLYTOGGLE) ) + Toggle(); + ImplInvalidateOrDrawCheckBoxState(); + if( ! (GetStyle() & WB_EARLYTOGGLE) ) + Toggle(); if ( aDelData.IsDelete() ) return; ImplRemoveDel( &aDelData ); |