diff options
Diffstat (limited to 'svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx')
-rw-r--r-- | svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx index 44ed09dd7fd9..b625f2eee7bd 100644 --- a/svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx @@ -42,10 +42,12 @@ namespace drawinglayer // add fill, but only when graphic ist transparent if(!getSdrLFSTAttribute().getFill().isDefault() && isTransparent()) { + basegfx::B2DPolyPolygon aTransformed(aUnitOutline); + + aTransformed.transform(getTransform()); appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, createPolyPolygonFillPrimitive( - basegfx::B2DPolyPolygon(aUnitOutline), - getTransform(), + aTransformed, getSdrLFSTAttribute().getFill(), getSdrLFSTAttribute().getFillFloatTransGradient())); } @@ -82,18 +84,21 @@ namespace drawinglayer const basegfx::B2DRange aExpandedRange(-fScaleX, -fScaleY, 1.0 + fScaleX, 1.0 + fScaleY); basegfx::B2DPolygon aExpandedUnitOutline(basegfx::tools::createPolygonFromRect(aExpandedRange)); + aExpandedUnitOutline.transform(getTransform()); appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, createPolygonLinePrimitive( aExpandedUnitOutline, - getTransform(), getSdrLFSTAttribute().getLine(), attribute::SdrLineStartEndAttribute())); } else { + basegfx::B2DPolygon aTransformed(aUnitOutline); + + aTransformed.transform(getTransform()); appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, createPolygonLinePrimitive( - aUnitOutline, getTransform(), + aTransformed, getSdrLFSTAttribute().getLine(), attribute::SdrLineStartEndAttribute())); } |