diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2010-09-01 13:31:14 +0200 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2010-09-01 13:31:14 +0200 |
commit | 68823a54fcc8997b20d010fedfd37387372d6d9c (patch) | |
tree | 1997c3f58c01cbfbf66a23eadc56f73fefa564ad /svtools | |
parent | abd28d4fdb0c534a418a1db84794c0a125b2598b (diff) | |
parent | a8925dac459af1c77d720699a17009be9a140d47 (diff) |
dba33h: merge
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/svtreebx.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/svtools/source/contnr/svtreebx.cxx b/svtools/source/contnr/svtreebx.cxx index 3b1430e0df77..fa3cf8e734c1 100644 --- a/svtools/source/contnr/svtreebx.cxx +++ b/svtools/source/contnr/svtreebx.cxx @@ -1513,6 +1513,11 @@ void SvTreeListBox::SetWindowBits( WinBits nWinStyle ) pImp->SetWindowBits( nWinStyle ); pImp->Resize(); Invalidate(); + + if ( nWindowStyle != GetStyle() ) + { + SetStyle( nWindowStyle ); + } } void SvTreeListBox::PaintEntry( SvLBoxEntry* pEntry ) @@ -2521,7 +2526,12 @@ void SvTreeListBox::StateChanged( StateChangedType i_nStateChange ) SvLBox::StateChanged( i_nStateChange ); if ( ( i_nStateChange & STATE_CHANGE_STYLE ) != 0 ) { - SetWindowBits( GetStyle() ); + if ( GetStyle() != nWindowStyle ) + // keep in sync with our WindowBits + // TODO: SetWindowBits is weird, it should be completely replaced (in all clients) with SetStyle + // (or are there WindowBits which have a different meaning when interpreted as style? Wouldn't + // be the first time, but all of those should be fixed meanwhile ...) + SetWindowBits( GetStyle() ); } } |