summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-06-06 13:20:37 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-06-06 13:20:37 +0000
commit437c9d2676c9c693dcb495db473259bc352907d5 (patch)
tree93eadf59e3c98c14a624a42f04bf987a634eb032
parent1292b6f43400b617341ebb71fd5d60f3e72dd299 (diff)
INTEGRATION: CWS dba30c (1.60.32); FILE MERGED
2008/05/13 07:03:22 fs 1.60.32.1: joining changes from CWS odbmacros3 to CWS dba30c 2008/04/22 11:09:38 fs 1.60.14.1: (approved by pl) when the WB_DEFBUTTON style of a PushButton changes, call ImplSetDefButton to update the display
-rw-r--r--vcl/source/control/button.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 3c028ea809ec..9e4bdc2763ba 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: button.cxx,v $
- * $Revision: 1.61 $
+ * $Revision: 1.62 $
*
* This file is part of OpenOffice.org.
*
@@ -1754,6 +1754,11 @@ void PushButton::StateChanged( StateChangedType nType )
{
SetStyle( ImplInitStyle( GetWindow( WINDOW_PREV ), GetStyle() ) );
+ bool bIsDefButton = ( GetStyle() & WB_DEFBUTTON ) != 0;
+ bool bWasDefButton = ( GetPrevStyle() & WB_DEFBUTTON ) != 0;
+ if ( bIsDefButton != bWasDefButton )
+ ImplSetDefButton( bIsDefButton );
+
if ( IsReallyVisible() && IsUpdateMode() )
{
if ( (GetPrevStyle() & PUSHBUTTON_VIEW_STYLE) !=