summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-04-03 12:12:26 +0000
committerKurt Zenker <kz@openoffice.org>2008-04-03 12:12:26 +0000
commit8e7f7d0ea05bbbd36f5e32b8c830c826d28dfbcc (patch)
tree3dc13ed95dcd1bc3621c9c160d1dfc4ec6352564 /canvas
parentd767c954bf316cbf15382f4a2d35ffc5ddf54c3d (diff)
INTEGRATION: CWS presenterview (1.2.14); FILE MERGED
2008/01/13 22:14:58 thb 1.2.14.1: #i85206# Respecting fill rule
Diffstat (limited to 'canvas')
-rwxr-xr-xcanvas/source/directx/dx_linepolypolygon.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/canvas/source/directx/dx_linepolypolygon.cxx b/canvas/source/directx/dx_linepolypolygon.cxx
index 6fb5291bea0b..c0c5396e4702 100755
--- a/canvas/source/directx/dx_linepolypolygon.cxx
+++ b/canvas/source/directx/dx_linepolypolygon.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: dx_linepolypolygon.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: hr $ $Date: 2007-11-01 17:56:02 $
+ * last change: $Author: kz $ $Date: 2008-04-03 13:12:26 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -54,7 +54,11 @@ namespace dxcanvas
// as any of the modifying methods above touches the
// B2DPolyPolygon).
if( !mpPath )
+ {
mpPath = tools::graphicsPathFromB2DPolyPolygon( getPolyPolygon() );
+ mpPath->SetFillMode( const_cast<LinePolyPolygon*>(this)->getFillRule() == rendering::FillRule_EVEN_ODD ?
+ Gdiplus::FillModeAlternate : Gdiplus::FillModeWinding );
+ }
return mpPath;
}