diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2006-04-07 09:25:20 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2006-04-07 09:25:20 +0000 |
commit | 4a9987f1779c3ad21ced502feb72dca3e94bae9e (patch) | |
tree | ae6e2008aab0f30217c212d7c412af0c08bb70f7 /vcl | |
parent | c71fdf12f58b6ec1f11b6158ffbd7dd513859191 (diff) |
INTEGRATION: CWS toolbarbehavior (1.5.222); FILE MERGED
2006/03/28 12:11:48 cd 1.5.222.1: #i61900# Check visibility of childs before painting borders
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/dockingarea.cxx | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/vcl/source/window/dockingarea.cxx b/vcl/source/window/dockingarea.cxx index 32b59907908f..75ca589497a8 100644 --- a/vcl/source/window/dockingarea.cxx +++ b/vcl/source/window/dockingarea.cxx @@ -4,9 +4,9 @@ * * $RCSfile: dockingarea.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: rt $ $Date: 2005-09-09 12:25:01 $ + * last change: $Author: vg $ $Date: 2006-04-07 10:25:20 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -194,17 +194,20 @@ void DockingAreaWindow::Paint( const Rectangle& rRect ) for( int n = 0; n < nChildren; n++ ) { Window* pChild = GetChild( n ); - Point aPos = pChild->GetPosPixel(); - Size aSize = pChild->GetSizePixel(); - Rectangle aRect( aPos, aSize ); + if ( pChild->IsVisible() ) + { + Point aPos = pChild->GetPosPixel(); + Size aSize = pChild->GetSizePixel(); + Rectangle aRect( aPos, aSize ); - SetLineColor( GetSettings().GetStyleSettings().GetLightColor() ); - DrawLine( aRect.TopLeft(), aRect.TopRight() ); - DrawLine( aRect.TopLeft(), aRect.BottomLeft() ); + SetLineColor( GetSettings().GetStyleSettings().GetLightColor() ); + DrawLine( aRect.TopLeft(), aRect.TopRight() ); + DrawLine( aRect.TopLeft(), aRect.BottomLeft() ); - SetLineColor( GetSettings().GetStyleSettings().GetSeparatorColor() ); - DrawLine( aRect.BottomLeft(), aRect.BottomRight() ); - DrawLine( aRect.TopRight(), aRect.BottomRight() ); + SetLineColor( GetSettings().GetStyleSettings().GetSeparatorColor() ); + DrawLine( aRect.BottomLeft(), aRect.BottomRight() ); + DrawLine( aRect.TopRight(), aRect.BottomRight() ); + } } } else |