diff options
Diffstat (limited to 'svgio')
-rw-r--r-- | svgio/inc/svgsymbolnode.hxx | 6 | ||||
-rw-r--r-- | svgio/source/svgreader/svgsymbolnode.cxx | 7 |
2 files changed, 1 insertions, 12 deletions
diff --git a/svgio/inc/svgsymbolnode.hxx b/svgio/inc/svgsymbolnode.hxx index 7cb2ac739555..555eabb2f99a 100644 --- a/svgio/inc/svgsymbolnode.hxx +++ b/svgio/inc/svgsymbolnode.hxx @@ -33,9 +33,6 @@ namespace svgio /// use styles SvgStyleAttributes maSvgStyleAttributes; - /// variable scan values, dependent of given XAttributeList - std::unique_ptr<basegfx::B2DRange> - mpViewBox; SvgAspectRatio maSvgAspectRatio; public: @@ -46,9 +43,6 @@ namespace svgio virtual const SvgStyleAttributes* getSvgStyleAttributes() const override; virtual void parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent) override; - - /// viewBox content - void setViewBox(const basegfx::B2DRange* pViewBox) { mpViewBox.reset(); if(pViewBox) mpViewBox.reset( new basegfx::B2DRange(*pViewBox) ); } }; } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/source/svgreader/svgsymbolnode.cxx b/svgio/source/svgreader/svgsymbolnode.cxx index 632067e8f954..45228cd8f37e 100644 --- a/svgio/source/svgreader/svgsymbolnode.cxx +++ b/svgio/source/svgreader/svgsymbolnode.cxx @@ -61,12 +61,7 @@ namespace svgio } case SVGTokenViewBox: { - const basegfx::B2DRange aRange(readViewBox(aContent, *this)); - - if(!aRange.isEmpty()) - { - setViewBox(&aRange); - } + readViewBox(aContent, *this); break; } case SVGTokenPreserveAspectRatio: |