diff options
Diffstat (limited to 'svgio/inc/svgpathnode.hxx')
-rw-r--r-- | svgio/inc/svgpathnode.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svgio/inc/svgpathnode.hxx b/svgio/inc/svgpathnode.hxx index 59daac852891..bc962691fe25 100644 --- a/svgio/inc/svgpathnode.hxx +++ b/svgio/inc/svgpathnode.hxx @@ -36,7 +36,7 @@ namespace svgio::svgreader /// variable scan values, dependent of given XAttributeList std::optional<basegfx::B2DPolyPolygon> mpPolyPolygon; - std::unique_ptr<basegfx::B2DHomMatrix> mpaTransform; + std::optional<basegfx::B2DHomMatrix> mpaTransform; SvgNumber maPathLength; basegfx::utils::PointIndexSet maHelpPointIndices; @@ -55,8 +55,8 @@ namespace svgio::svgreader void setPath(const std::optional<basegfx::B2DPolyPolygon>& pPath) { mpPolyPolygon = pPath; } /// transform content, set if found in current context - const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform.get(); } - void setTransform(const basegfx::B2DHomMatrix* pMatrix) { mpaTransform.reset(); if(pMatrix) mpaTransform.reset(new basegfx::B2DHomMatrix(*pMatrix)); } + const std::optional<basegfx::B2DHomMatrix>& getTransform() const { return mpaTransform; } + void setTransform(const std::optional<basegfx::B2DHomMatrix>& pMatrix) { mpaTransform = pMatrix; } /// PathLength content const SvgNumber& getPathLength() const { return maPathLength; } |