diff options
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/sdr/contact/viewcontactofmasterpagedescriptor.cxx | 2 | ||||
-rw-r--r-- | svx/source/sdr/contact/viewcontactofsdrcaptionobj.cxx | 1 | ||||
-rw-r--r-- | svx/source/sdr/contact/viewcontactofsdrpage.cxx | 2 | ||||
-rw-r--r-- | svx/source/sdr/primitive2d/sdrcaptionprimitive2d.cxx | 17 | ||||
-rw-r--r-- | svx/source/sdr/primitive2d/sdrconnectorprimitive2d.cxx | 1 | ||||
-rw-r--r-- | svx/source/sdr/primitive2d/sdrdecompositiontools.cxx | 63 | ||||
-rw-r--r-- | svx/source/sdr/primitive2d/sdrellipseprimitive2d.cxx | 24 | ||||
-rw-r--r-- | svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx | 13 | ||||
-rw-r--r-- | svx/source/sdr/primitive2d/sdrmeasureprimitive2d.cxx | 8 | ||||
-rw-r--r-- | svx/source/sdr/primitive2d/sdrole2primitive2d.cxx | 14 | ||||
-rw-r--r-- | svx/source/sdr/primitive2d/sdrpathprimitive2d.cxx | 12 | ||||
-rw-r--r-- | svx/source/sdr/primitive2d/sdrrectangleprimitive2d.cxx | 12 | ||||
-rw-r--r-- | svx/source/svdraw/svddrgmt.cxx | 1 | ||||
-rw-r--r-- | svx/source/table/viewcontactoftableobj.cxx | 6 |
14 files changed, 114 insertions, 62 deletions
diff --git a/svx/source/sdr/contact/viewcontactofmasterpagedescriptor.cxx b/svx/source/sdr/contact/viewcontactofmasterpagedescriptor.cxx index 0732c71ef5a4..158fc78ba9ad 100644 --- a/svx/source/sdr/contact/viewcontactofmasterpagedescriptor.cxx +++ b/svx/source/sdr/contact/viewcontactofmasterpagedescriptor.cxx @@ -68,11 +68,9 @@ namespace sdr rOwnerPage.GetWdt() - rOwnerPage.GetRgtBorder(), rOwnerPage.GetHgt() - rOwnerPage.GetLwrBorder()); const basegfx::B2DPolygon aInnerPolgon(basegfx::tools::createPolygonFromRect(aInnerRange)); - const basegfx::B2DHomMatrix aEmptyTransform; const drawinglayer::primitive2d::Primitive2DReference xReference( drawinglayer::primitive2d::createPolyPolygonFillPrimitive( basegfx::B2DPolyPolygon(aInnerPolgon), - aEmptyTransform, aFill, drawinglayer::attribute::FillGradientAttribute())); diff --git a/svx/source/sdr/contact/viewcontactofsdrcaptionobj.cxx b/svx/source/sdr/contact/viewcontactofsdrcaptionobj.cxx index 95f9e008ab9c..0ae9f803c643 100644 --- a/svx/source/sdr/contact/viewcontactofsdrcaptionobj.cxx +++ b/svx/source/sdr/contact/viewcontactofsdrcaptionobj.cxx @@ -179,7 +179,6 @@ namespace sdr // if there is shadow, create the specialized shadow primitive xSpecialShadow = drawinglayer::primitive2d::createPolyPolygonFillPrimitive( aClippedShadow, - basegfx::B2DHomMatrix(), aFill, drawinglayer::attribute::FillGradientAttribute()); } diff --git a/svx/source/sdr/contact/viewcontactofsdrpage.cxx b/svx/source/sdr/contact/viewcontactofsdrpage.cxx index 265cd6d03eff..ec9e7d1196c5 100644 --- a/svx/source/sdr/contact/viewcontactofsdrpage.cxx +++ b/svx/source/sdr/contact/viewcontactofsdrpage.cxx @@ -242,11 +242,9 @@ namespace sdr rPage.GetLftBorder(), rPage.GetUppBorder(), rPage.GetWdt() - rPage.GetRgtBorder(), rPage.GetHgt() - rPage.GetLwrBorder()); const basegfx::B2DPolygon aInnerPolgon(basegfx::tools::createPolygonFromRect(aInnerRange)); - const basegfx::B2DHomMatrix aEmptyTransform; const drawinglayer::primitive2d::Primitive2DReference xReference( drawinglayer::primitive2d::createPolyPolygonFillPrimitive( basegfx::B2DPolyPolygon(aInnerPolgon), - aEmptyTransform, aFill, drawinglayer::attribute::FillGradientAttribute())); diff --git a/svx/source/sdr/primitive2d/sdrcaptionprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrcaptionprimitive2d.cxx index e8334a9964cd..6a8996ea7c79 100644 --- a/svx/source/sdr/primitive2d/sdrcaptionprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrcaptionprimitive2d.cxx @@ -56,10 +56,12 @@ namespace drawinglayer } else { + basegfx::B2DPolyPolygon aTransformed(aUnitOutline); + + aTransformed.transform(getTransform()); appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, createPolyPolygonFillPrimitive( - basegfx::B2DPolyPolygon(aUnitOutline), - getTransform(), + aTransformed, getSdrLFSTAttribute().getFill(), getSdrLFSTAttribute().getFillFloatTransGradient())); } @@ -82,17 +84,20 @@ namespace drawinglayer } else { + basegfx::B2DPolygon aTransformed(aUnitOutline); + + aTransformed.transform(getTransform()); appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, createPolygonLinePrimitive( - aUnitOutline, - getTransform(), + aTransformed, getSdrLFSTAttribute().getLine(), attribute::SdrLineStartEndAttribute())); + aTransformed = getTail(); + aTransformed.transform(getTransform()); appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, createPolygonLinePrimitive( - getTail(), - getTransform(), + aTransformed, getSdrLFSTAttribute().getLine(), getSdrLFSTAttribute().getLineStartEnd())); } diff --git a/svx/source/sdr/primitive2d/sdrconnectorprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrconnectorprimitive2d.cxx index dc49f629a777..069693ce90d7 100644 --- a/svx/source/sdr/primitive2d/sdrconnectorprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrconnectorprimitive2d.cxx @@ -53,7 +53,6 @@ namespace drawinglayer appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, createPolygonLinePrimitive( getUnitPolygon(), - basegfx::B2DHomMatrix(), getSdrLSTAttribute().getLine(), getSdrLSTAttribute().getLineStartEnd())); } diff --git a/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx b/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx index 5d48cbc6b454..f7512d519461 100644 --- a/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx +++ b/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx @@ -56,32 +56,62 @@ namespace drawinglayer namespace primitive2d { Primitive2DReference createPolyPolygonFillPrimitive( - const basegfx::B2DPolyPolygon& rUnitPolyPolygon, - const basegfx::B2DHomMatrix& rObjectTransform, + const basegfx::B2DPolyPolygon& rPolyPolygon, + const attribute::SdrFillAttribute& rFill, + const attribute::FillGradientAttribute& rFillGradient) + { + // when we have no given definition range, use the range of the given geometry + // also for definition (simplest case) + const basegfx::B2DRange aRange(basegfx::tools::getRange(rPolyPolygon)); + + return createPolyPolygonFillPrimitive( + rPolyPolygon, + aRange, + rFill, + rFillGradient); + } + + Primitive2DReference createPolyPolygonFillPrimitive( + const basegfx::B2DPolyPolygon& rPolyPolygon, + const basegfx::B2DRange& rDefinitionRange, const attribute::SdrFillAttribute& rFill, const attribute::FillGradientAttribute& rFillGradient) { + if(basegfx::fTools::moreOrEqual(rFill.getTransparence(), 1.0)) + { + return Primitive2DReference(); + } + // prepare fully scaled polygon - basegfx::B2DPolyPolygon aScaledPolyPolygon(rUnitPolyPolygon); - aScaledPolyPolygon.transform(rObjectTransform); BasePrimitive2D* pNewFillPrimitive = 0; if(!rFill.getGradient().isDefault()) { - pNewFillPrimitive = new PolyPolygonGradientPrimitive2D(aScaledPolyPolygon, rFill.getGradient()); + pNewFillPrimitive = new PolyPolygonGradientPrimitive2D( + rPolyPolygon, + rDefinitionRange, + rFill.getGradient()); } else if(!rFill.getHatch().isDefault()) { - pNewFillPrimitive = new PolyPolygonHatchPrimitive2D(aScaledPolyPolygon, rFill.getColor(), rFill.getHatch()); + pNewFillPrimitive = new PolyPolygonHatchPrimitive2D( + rPolyPolygon, + rDefinitionRange, + rFill.getColor(), + rFill.getHatch()); } else if(!rFill.getFillGraphic().isDefault()) { - const basegfx::B2DRange aRange(basegfx::tools::getRange(aScaledPolyPolygon)); - pNewFillPrimitive = new PolyPolygonGraphicPrimitive2D(aScaledPolyPolygon, rFill.getFillGraphic().createFillGraphicAttribute(aRange)); + pNewFillPrimitive = new PolyPolygonGraphicPrimitive2D( + rPolyPolygon, + rDefinitionRange, + rFill.getFillGraphic().createFillGraphicAttribute(rDefinitionRange)); } else { - pNewFillPrimitive = new PolyPolygonColorPrimitive2D(aScaledPolyPolygon, rFill.getColor()); + pNewFillPrimitive = new PolyPolygonColorPrimitive2D( + rPolyPolygon, + rFill.getColor()); } if(0.0 != rFill.getTransparence()) @@ -99,7 +129,7 @@ namespace drawinglayer // create FillGradientPrimitive2D for transparence and add to new sequence // fillGradientPrimitive is enough here (compared to PolyPolygonGradientPrimitive2D) since float transparence will be masked anyways - const basegfx::B2DRange aRange(basegfx::tools::getRange(aScaledPolyPolygon)); + const basegfx::B2DRange aRange(basegfx::tools::getRange(rPolyPolygon)); const Primitive2DReference xRefB(new FillGradientPrimitive2D(aRange, rFillGradient)); const Primitive2DSequence aAlpha(&xRefB, 1L); @@ -114,32 +144,27 @@ namespace drawinglayer } Primitive2DReference createPolygonLinePrimitive( - const basegfx::B2DPolygon& rUnitPolygon, - const basegfx::B2DHomMatrix& rObjectTransform, + const basegfx::B2DPolygon& rPolygon, const attribute::SdrLineAttribute& rLine, const attribute::SdrLineStartEndAttribute& rStroke) { - // prepare fully scaled polygon - basegfx::B2DPolygon aScaledPolygon(rUnitPolygon); - aScaledPolygon.transform(rObjectTransform); - // create line and stroke attribute const attribute::LineAttribute aLineAttribute(rLine.getColor(), rLine.getWidth(), rLine.getJoin(), rLine.getCap()); const attribute::StrokeAttribute aStrokeAttribute(rLine.getDotDashArray(), rLine.getFullDotDashLen()); BasePrimitive2D* pNewLinePrimitive = 0L; - if(!rUnitPolygon.isClosed() && !rStroke.isDefault()) + if(!rPolygon.isClosed() && !rStroke.isDefault()) { attribute::LineStartEndAttribute aStart(rStroke.getStartWidth(), rStroke.getStartPolyPolygon(), rStroke.isStartCentered()); attribute::LineStartEndAttribute aEnd(rStroke.getEndWidth(), rStroke.getEndPolyPolygon(), rStroke.isEndCentered()); // create data - pNewLinePrimitive = new PolygonStrokeArrowPrimitive2D(aScaledPolygon, aLineAttribute, aStrokeAttribute, aStart, aEnd); + pNewLinePrimitive = new PolygonStrokeArrowPrimitive2D(rPolygon, aLineAttribute, aStrokeAttribute, aStart, aEnd); } else { // create data - pNewLinePrimitive = new PolygonStrokePrimitive2D(aScaledPolygon, aLineAttribute, aStrokeAttribute); + pNewLinePrimitive = new PolygonStrokePrimitive2D(rPolygon, aLineAttribute, aStrokeAttribute); } if(0.0 != rLine.getTransparence()) diff --git a/svx/source/sdr/primitive2d/sdrellipseprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrellipseprimitive2d.cxx index 2c7c3839a1dc..5ec3fe86a50c 100644 --- a/svx/source/sdr/primitive2d/sdrellipseprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrellipseprimitive2d.cxx @@ -57,10 +57,12 @@ namespace drawinglayer // add fill if(!getSdrLFSTAttribute().getFill().isDefault()) { + basegfx::B2DPolyPolygon aTransformed(aUnitOutline); + + aTransformed.transform(getTransform()); appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, createPolyPolygonFillPrimitive( - basegfx::B2DPolyPolygon(aUnitOutline), - getTransform(), + aTransformed, getSdrLFSTAttribute().getFill(), getSdrLFSTAttribute().getFillFloatTransGradient())); } @@ -77,10 +79,12 @@ namespace drawinglayer } else { + basegfx::B2DPolygon aTransformed(aUnitOutline); + + aTransformed.transform(getTransform()); appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, createPolygonLinePrimitive( - aUnitOutline, - getTransform(), + aTransformed, getSdrLFSTAttribute().getLine(), attribute::SdrLineStartEndAttribute())); } @@ -173,10 +177,12 @@ namespace drawinglayer // add fill if(!getSdrLFSTAttribute().getFill().isDefault() && aUnitOutline.isClosed()) { + basegfx::B2DPolyPolygon aTransformed(aUnitOutline); + + aTransformed.transform(getTransform()); appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, createPolyPolygonFillPrimitive( - basegfx::B2DPolyPolygon(aUnitOutline), - getTransform(), + aTransformed, getSdrLFSTAttribute().getFill(), getSdrLFSTAttribute().getFillFloatTransGradient())); } @@ -193,10 +199,12 @@ namespace drawinglayer } else { + basegfx::B2DPolygon aTransformed(aUnitOutline); + + aTransformed.transform(getTransform()); appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, createPolygonLinePrimitive( - aUnitOutline, - getTransform(), + aTransformed, getSdrLFSTAttribute().getLine(), getSdrLFSTAttribute().getLineStartEnd())); } 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())); } diff --git a/svx/source/sdr/primitive2d/sdrmeasureprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrmeasureprimitive2d.cxx index 86dce144e026..c442ff4273e4 100644 --- a/svx/source/sdr/primitive2d/sdrmeasureprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrmeasureprimitive2d.cxx @@ -52,12 +52,12 @@ namespace drawinglayer aPolygon.append(rStart); aPolygon.append(rEnd); + aPolygon.transform(rObjectMatrix); if(rLineStartEnd.isDefault() || (!bLeftActive && !bRightActive)) { return createPolygonLinePrimitive( aPolygon, - rObjectMatrix, rLineAttribute, attribute::SdrLineStartEndAttribute()); } @@ -66,7 +66,6 @@ namespace drawinglayer { return createPolygonLinePrimitive( aPolygon, - rObjectMatrix, rLineAttribute, rLineStartEnd); } @@ -78,7 +77,10 @@ namespace drawinglayer bLeftActive ? rLineStartEnd.isStartActive() : false, bRightActive ? rLineStartEnd.isEndActive() : false, bLeftActive ? rLineStartEnd.isStartCentered() : false, bRightActive? rLineStartEnd.isEndCentered() : false); - return createPolygonLinePrimitive(aPolygon, rObjectMatrix, rLineAttribute, aLineStartEnd); + return createPolygonLinePrimitive( + aPolygon, + rLineAttribute, + aLineStartEnd); } Primitive2DSequence SdrMeasurePrimitive2D::create2DDecomposition(const geometry::ViewInformation2D& aViewInformation) const diff --git a/svx/source/sdr/primitive2d/sdrole2primitive2d.cxx b/svx/source/sdr/primitive2d/sdrole2primitive2d.cxx index 9f0ca124c114..f7eaa50b8e59 100644 --- a/svx/source/sdr/primitive2d/sdrole2primitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrole2primitive2d.cxx @@ -84,10 +84,12 @@ namespace drawinglayer if(!bBehaveCompatibleToPaintVersion && !getSdrLFSTAttribute().getFill().isDefault()) { + basegfx::B2DPolyPolygon aTransformed(aUnitOutline); + + aTransformed.transform(getTransform()); appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, createPolyPolygonFillPrimitive( - basegfx::B2DPolyPolygon(aUnitOutline), - getTransform(), + aTransformed, getSdrLFSTAttribute().getFill(), getSdrLFSTAttribute().getFillFloatTransGradient())); } @@ -114,19 +116,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())); } diff --git a/svx/source/sdr/primitive2d/sdrpathprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrpathprimitive2d.cxx index 001e053585cc..dd4f44358983 100644 --- a/svx/source/sdr/primitive2d/sdrpathprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrpathprimitive2d.cxx @@ -44,10 +44,12 @@ namespace drawinglayer { // #i108255# no need to use correctOrientations here; target is // straight visualisation + basegfx::B2DPolyPolygon aTransformed(getUnitPolyPolygon()); + + aTransformed.transform(getTransform()); appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, createPolyPolygonFillPrimitive( - getUnitPolyPolygon(), - getTransform(), + aTransformed, getSdrLFSTAttribute().getFill(), getSdrLFSTAttribute().getFillFloatTransGradient())); } @@ -68,9 +70,11 @@ namespace drawinglayer for(sal_uInt32 a(0); a < getUnitPolyPolygon().count(); a++) { + basegfx::B2DPolygon aTransformed(getUnitPolyPolygon().getB2DPolygon(a)); + + aTransformed.transform(getTransform()); aTemp[a] = createPolygonLinePrimitive( - getUnitPolyPolygon().getB2DPolygon(a), - getTransform(), + aTransformed, getSdrLFSTAttribute().getLine(), getSdrLFSTAttribute().getLineStartEnd()); } diff --git a/svx/source/sdr/primitive2d/sdrrectangleprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrrectangleprimitive2d.cxx index c5aa91fe120e..bb9b1e49038e 100644 --- a/svx/source/sdr/primitive2d/sdrrectangleprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrrectangleprimitive2d.cxx @@ -48,10 +48,12 @@ namespace drawinglayer // add fill if(!getSdrLFSTAttribute().getFill().isDefault()) { + basegfx::B2DPolyPolygon aTransformed(aUnitOutline); + + aTransformed.transform(getTransform()); appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, createPolyPolygonFillPrimitive( - basegfx::B2DPolyPolygon(aUnitOutline), - getTransform(), + aTransformed, getSdrLFSTAttribute().getFill(), getSdrLFSTAttribute().getFillFloatTransGradient())); } @@ -69,10 +71,12 @@ namespace drawinglayer // add line if(!getSdrLFSTAttribute().getLine().isDefault()) { + basegfx::B2DPolygon aTransformed(aUnitOutline); + + aTransformed.transform(getTransform()); appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, createPolygonLinePrimitive( - aUnitOutline, - getTransform(), + aTransformed, getSdrLFSTAttribute().getLine(), attribute::SdrLineStartEndAttribute())); } diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx index 4f800764454c..224ebf7b9e99 100644 --- a/svx/source/svdraw/svddrgmt.cxx +++ b/svx/source/svdraw/svddrgmt.cxx @@ -931,7 +931,6 @@ drawinglayer::primitive2d::Primitive2DSequence SdrDragMethod::AddConnectorOverla drawinglayer::primitive2d::appendPrimitive2DReferenceToPrimitive2DSequence( aRetval, drawinglayer::primitive2d::createPolygonLinePrimitive( aEdgePolygon, - basegfx::B2DHomMatrix(), aLine, aLineStartEnd)); } diff --git a/svx/source/table/viewcontactoftableobj.cxx b/svx/source/table/viewcontactoftableobj.cxx index 9ae4c874cfe1..a98fe20e1db9 100644 --- a/svx/source/table/viewcontactoftableobj.cxx +++ b/svx/source/table/viewcontactoftableobj.cxx @@ -92,10 +92,12 @@ namespace drawinglayer // add fill if(!getSdrFTAttribute().getFill().isDefault()) { + basegfx::B2DPolyPolygon aTransformed(aUnitPolyPolygon); + + aTransformed.transform(getTransform()); appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, createPolyPolygonFillPrimitive( - aUnitPolyPolygon, - getTransform(), + aTransformed, getSdrFTAttribute().getFill(), getSdrFTAttribute().getFillFloatTransGradient())); } |