diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-07-08 09:40:29 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-07-08 09:40:29 +0000 |
commit | 8da7f369fd46258562a870c2ea21bd019376588f (patch) | |
tree | 9e096db44b88099d6865f699d44999a809a4e50c /vcl/source/control/group.cxx | |
parent | 08e4815d00bffdc53295d26ced986daa8fe2ab62 (diff) |
INTEGRATION: CWS dba20blocker (1.4.478); FILE MERGED
2005/06/23 12:25:42 fs 1.4.478.1: copying fix for #i46986# into this CWS
Diffstat (limited to 'vcl/source/control/group.cxx')
-rw-r--r-- | vcl/source/control/group.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/vcl/source/control/group.cxx b/vcl/source/control/group.cxx index 410006cb8c3d..6390176132a2 100644 --- a/vcl/source/control/group.cxx +++ b/vcl/source/control/group.cxx @@ -2,9 +2,9 @@ * * $RCSfile: group.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: vg $ $Date: 2004-01-06 13:19:32 $ + * last change: $Author: obo $ $Date: 2005-07-08 10:40:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -242,7 +242,11 @@ void GroupBox::ImplDraw( OutputDevice* pDev, ULONG nDrawFlags, pDev->DrawLine( Point( rPos.X(), rPos.Y()+rSize.Height()-2 ), Point( rPos.X()+rSize.Width()-2, rPos.Y()+rSize.Height()-2 ) ); pDev->DrawLine( Point( rPos.X()+rSize.Width()-2, rPos.Y()+rSize.Height()-2 ), Point( rPos.X()+rSize.Width()-2, nTop ) ); - if ( !(nDrawFlags & WINDOW_DRAW_MONO) ) + bool bIsPrinter = OUTDEV_PRINTER == pDev->GetOutDevType(); + // if we're drawing onto a printer, spare the 3D effect + // #i46986# / 2005-04-13 / frank.schoenheit@sun.com + + if ( !bIsPrinter && !(nDrawFlags & WINDOW_DRAW_MONO) ) { pDev->SetLineColor( rStyleSettings.GetLightColor() ); if ( !aText.Len() ) |