diff options
-rw-r--r-- | svgio/inc/SvgNumber.hxx | 5 | ||||
-rw-r--r-- | svgio/source/svgreader/svgtools.cxx | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/svgio/inc/SvgNumber.hxx b/svgio/inc/SvgNumber.hxx index a4942719a2f4..9b6907a02031 100644 --- a/svgio/inc/SvgNumber.hxx +++ b/svgio/inc/SvgNumber.hxx @@ -100,7 +100,10 @@ public: return mbSet; } - bool isPositive() const; + bool isPositive() const + { + return basegfx::fTools::moreOrEqual(mfNumber, 0.0); + } // Only usable in cases, when the unit is not SvgUnit::percent, otherwise use method solve double solveNonPercentage(const InfoProvider& rInfoProvider) const; diff --git a/svgio/source/svgreader/svgtools.cxx b/svgio/source/svgreader/svgtools.cxx index beb735e2044e..66f89f2d60e1 100644 --- a/svgio/source/svgreader/svgtools.cxx +++ b/svgio/source/svgreader/svgtools.cxx @@ -267,11 +267,6 @@ namespace svgio::svgreader return 0.0; } - bool SvgNumber::isPositive() const - { - return basegfx::fTools::moreOrEqual(mfNumber, 0.0); - } - void skip_char(std::u16string_view rCandidate, sal_Unicode nChar, sal_Int32& nPos, const sal_Int32 nLen) { while(nPos < nLen && nChar == rCandidate[nPos]) |