summaryrefslogtreecommitdiff
path: root/svgio/inc
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2021-05-01 12:24:56 +0900
committerTomaž Vajngerl <quikee@gmail.com>2021-05-01 09:28:56 +0200
commit0d62ee66d6c02f0b3c38d1d0fa52f9cd86207a98 (patch)
tree15e972f6997a8fc71063460f63f8cedf42f99495 /svgio/inc
parentfd50995350e613796794593cd216b7432fed98b6 (diff)
svgio: move isPositive to the SvgNumber header file
Change-Id: I05c7d59000ac7f14a5d34ed30273379f6fc31677 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114955 Tested-by: Tomaž Vajngerl <quikee@gmail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svgio/inc')
-rw-r--r--svgio/inc/SvgNumber.hxx5
1 files changed, 4 insertions, 1 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;