summaryrefslogtreecommitdiff
path: root/cppcanvas/source/mtfrenderer/implrenderer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppcanvas/source/mtfrenderer/implrenderer.cxx')
-rw-r--r--cppcanvas/source/mtfrenderer/implrenderer.cxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index 2fcff5ad4ba1..a85239140b0e 100644
--- a/cppcanvas/source/mtfrenderer/implrenderer.cxx
+++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx
@@ -1368,7 +1368,7 @@ namespace cppcanvas
}
else
{
- if( !pClipAction->GetRegion().HasPolyPolygon() )
+ if( !pClipAction->GetRegion().HasPolyPolygonOrB2DPolyPolygon() )
{
VERBOSE_TRACE( "ImplRenderer::createActions(): non-polygonal clip "
"region encountered, falling back to bounding box!" );
@@ -1390,9 +1390,11 @@ namespace cppcanvas
// with old one, just set it)
// #121806# explicitly kept integer
+ basegfx::B2DPolyPolygon aPolyPolygon(pClipAction->GetRegion().GetAsB2DPolyPolygon());
+
+ aPolyPolygon.transform(rVDev.GetViewTransformation());
updateClipping(
- rVDev.LogicToPixel(
- pClipAction->GetRegion().GetPolyPolygon() ).getB2DPolyPolygon(),
+ aPolyPolygon,
rFactoryParms,
false );
}
@@ -1422,7 +1424,7 @@ namespace cppcanvas
{
MetaISectRegionClipRegionAction* pClipAction = static_cast<MetaISectRegionClipRegionAction*>(pCurrAct);
- if( !pClipAction->GetRegion().HasPolyPolygon() )
+ if( !pClipAction->GetRegion().HasPolyPolygonOrB2DPolyPolygon() )
{
VERBOSE_TRACE( "ImplRenderer::createActions(): non-polygonal clip "
"region encountered, falling back to bounding box!" );
@@ -1442,9 +1444,11 @@ namespace cppcanvas
// intersect current clip with given clip polygon
// #121806# explicitly kept integer
+ basegfx::B2DPolyPolygon aPolyPolygon(pClipAction->GetRegion().GetAsB2DPolyPolygon());
+
+ aPolyPolygon.transform(rVDev.GetViewTransformation());
updateClipping(
- rVDev.LogicToPixel(
- pClipAction->GetRegion().GetPolyPolygon() ).getB2DPolyPolygon(),
+ aPolyPolygon,
rFactoryParms,
true );
}