summaryrefslogtreecommitdiff
path: root/cppcanvas/source/wrapper
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-11-02 12:43:48 +0000
committerKurt Zenker <kz@openoffice.org>2005-11-02 12:43:48 +0000
commit36f9a4d595182183397c4b433a20624cceaebe5e (patch)
tree6b3cb8734c9ad99d7a4a01debd2d12ede57e2103 /cppcanvas/source/wrapper
parent8bb32b9831eb5b322e9463a2dfeafc451cf8de9c (diff)
INTEGRATION: CWS canvas02 (1.5.8); FILE MERGED
2005/10/09 09:21:45 thb 1.5.8.2: RESYNC: (1.5-1.6); FILE MERGED 2005/08/19 11:08:34 thb 1.5.8.1: #i53538# Changed clip setting to use basegfx polygon (cppcanvas::PolyPolygon contains reference back to canvas); changed direct access to base class member to getter method, thus, providing the actual XCanvas clip polygon lazily.
Diffstat (limited to 'cppcanvas/source/wrapper')
-rw-r--r--cppcanvas/source/wrapper/implpolypolygon.cxx16
1 files changed, 9 insertions, 7 deletions
diff --git a/cppcanvas/source/wrapper/implpolypolygon.cxx b/cppcanvas/source/wrapper/implpolypolygon.cxx
index cdff23b88ee6..c9a3085c1298 100644
--- a/cppcanvas/source/wrapper/implpolypolygon.cxx
+++ b/cppcanvas/source/wrapper/implpolypolygon.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: implpolypolygon.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 08:29:09 $
+ * last change: $Author: kz $ $Date: 2005-11-02 13:43:48 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -179,25 +179,27 @@ namespace cppcanvas
if( mbFillColorSet )
{
- maRenderState.DeviceColor = maFillColor;
+ rendering::RenderState aLocalState( getRenderState() );
+ aLocalState.DeviceColor = maFillColor;
pCanvas->getUNOCanvas()->fillPolyPolygon( mxPolyPoly,
pCanvas->getViewState(),
- maRenderState );
+ aLocalState );
}
if( mbStrokeColorSet )
{
- maRenderState.DeviceColor = maStrokeColor;
+ rendering::RenderState aLocalState( getRenderState() );
+ aLocalState.DeviceColor = maStrokeColor;
if( ::rtl::math::approxEqual(maStrokeAttributes.StrokeWidth, 1.0) )
pCanvas->getUNOCanvas()->drawPolyPolygon( mxPolyPoly,
pCanvas->getViewState(),
- maRenderState );
+ aLocalState );
else
pCanvas->getUNOCanvas()->strokePolyPolygon( mxPolyPoly,
pCanvas->getViewState(),
- maRenderState,
+ aLocalState,
maStrokeAttributes );
}