diff options
Diffstat (limited to 'svx/source/sdr/attribute/sdrallfillattributeshelper.cxx')
-rw-r--r-- | svx/source/sdr/attribute/sdrallfillattributeshelper.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/sdr/attribute/sdrallfillattributeshelper.cxx b/svx/source/sdr/attribute/sdrallfillattributeshelper.cxx index 25e44f942f76..fa0cf7a59c58 100644 --- a/svx/source/sdr/attribute/sdrallfillattributeshelper.cxx +++ b/svx/source/sdr/attribute/sdrallfillattributeshelper.cxx @@ -40,14 +40,14 @@ namespace drawinglayer::attribute if(isUsed()) { - maPrimitives.resize(1); - maPrimitives[0] = drawinglayer::primitive2d::createPolyPolygonFillPrimitive( - basegfx::B2DPolyPolygon( - basegfx::utils::createPolygonFromRect( - maLastPaintRange)), - maLastDefineRange, - maFillAttribute ? *maFillAttribute : drawinglayer::attribute::SdrFillAttribute(), - maFillGradientAttribute ? *maFillGradientAttribute : drawinglayer::attribute::FillGradientAttribute()); + maPrimitives = drawinglayer::primitive2d::Primitive2DContainer { + drawinglayer::primitive2d::createPolyPolygonFillPrimitive( + basegfx::B2DPolyPolygon( + basegfx::utils::createPolygonFromRect( + maLastPaintRange)), + maLastDefineRange, + maFillAttribute ? *maFillAttribute : drawinglayer::attribute::SdrFillAttribute(), + maFillGradientAttribute ? *maFillGradientAttribute : drawinglayer::attribute::FillGradientAttribute()) }; } } |