summaryrefslogtreecommitdiffstats
path: root/vcl/source/window/dockingarea.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2006-04-07 09:25:20 +0000
committerVladimir Glazounov <vg@openoffice.org>2006-04-07 09:25:20 +0000
commit4a9987f1779c3ad21ced502feb72dca3e94bae9e (patch)
treeae6e2008aab0f30217c212d7c412af0c08bb70f7 /vcl/source/window/dockingarea.cxx
parentINTEGRATION: CWS sixtyfour04 (1.58.190); FILE MERGED (diff)
downloadcore-4a9987f1779c3ad21ced502feb72dca3e94bae9e.tar.gz
core-4a9987f1779c3ad21ced502feb72dca3e94bae9e.zip
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/source/window/dockingarea.cxx')
-rw-r--r--vcl/source/window/dockingarea.cxx25
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