summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-07-30 12:14:04 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-07-30 12:14:04 +0000
commit1d9ad7f185ceb02e6e4f839f7ce7827a4ff76120 (patch)
tree429db84e2f681e53db993bcee3bf598adb629837 /vcl
parent2965064fd1c998bc0f0dac85108d4ec8f09bc987 (diff)
INTEGRATION: CWS vcl91 (1.29.22); FILE MERGED
2008/07/21 12:16:00 pl 1.29.22.1: #158236# solve clipping problems
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/outdev4.cxx17
1 files changed, 2 insertions, 15 deletions
diff --git a/vcl/source/gdi/outdev4.cxx b/vcl/source/gdi/outdev4.cxx
index 164df242c922..842aecd776df 100644
--- a/vcl/source/gdi/outdev4.cxx
+++ b/vcl/source/gdi/outdev4.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: outdev4.cxx,v $
- * $Revision: 1.29 $
+ * $Revision: 1.30 $
*
* This file is part of OpenOffice.org.
*
@@ -920,20 +920,7 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
aGradient.SetEndColor( aEndCol );
}
- if( mpGraphics->supportsOperation( OutDevSupport_B2DClip ) )
- {
- ::basegfx::B2DPolyPolygon aB2DPolyPolygon = rPolyPoly.getB2DPolyPolygon();
- const ::basegfx::B2DHomMatrix aTransform = ImplGetDeviceTransformation();
- aB2DPolyPolygon.transform( aTransform );
- mpGraphics->BeginSetClipRegion( 0 );
- mpGraphics->UnionClipRegion( aB2DPolyPolygon, this );
- mpGraphics->EndSetClipRegion();
- const Rectangle aBoundRect( rPolyPoly.GetBoundRect() );
- DrawGradient( aBoundRect, rGradient );
- mpGraphics->BeginSetClipRegion( 0 );
- mpGraphics->EndSetClipRegion();
- }
- else if( OUTDEV_PRINTER == meOutDevType )
+ if( OUTDEV_PRINTER == meOutDevType || ImplGetSVData()->maGDIData.mbNoXORClipping )
{
const Rectangle aBoundRect( rPolyPoly.GetBoundRect() );