diff options
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/primitive2d/svggradientprimitive2d.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx b/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx index 54b750d3df14..0197b4199fb2 100644 --- a/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx @@ -1049,7 +1049,7 @@ namespace drawinglayer // check and evtl. set translations if(!rTranslateA.equal(rTranslateB)) { - mpTranslate = new VectorPair(rTranslateA, rTranslateB); + mpTranslate.reset( new VectorPair(rTranslateA, rTranslateB) ); } // scale A and B have to be positive @@ -1093,11 +1093,6 @@ namespace drawinglayer SvgRadialAtomPrimitive2D::~SvgRadialAtomPrimitive2D() { - if(mpTranslate) - { - delete mpTranslate; - mpTranslate = nullptr; - } } bool SvgRadialAtomPrimitive2D::operator==(const BasePrimitive2D& rPrimitive) const |