diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-06-14 20:11:34 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-06-16 10:47:27 +0200 |
commit | e838c1b9e9031de742deeff763c06b1d39f399ef (patch) | |
tree | 348e261e849cfa607b4117f7e788ca24d1a52d80 /basegfx | |
parent | bf6dabe0ebad3cc5bc0edc04ae74fba0190b6203 (diff) |
basegfx: use namespace for "ftools", make sure input is FP number
Don't use empty class with static methods for ftools, but just
use namespace instead. Also make sure it works with any floating
point numbers (float and double) and don't allow input if it is
anything else than a floating point number
Change-Id: I94b964291b3999d38ae13afe6ddfdbe6d891d410
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117154
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/color/bcolortools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basegfx/source/color/bcolortools.cxx b/basegfx/source/color/bcolortools.cxx index 727b9c781774..160b48328966 100644 --- a/basegfx/source/color/bcolortools.cxx +++ b/basegfx/source/color/bcolortools.cxx @@ -152,7 +152,7 @@ namespace basegfx::utils } else { - if( fTools::equal(h,360) ) + if( fTools::equal(h, 360.0) ) h = 0; // 360 degrees is equivalent to 0 degrees h /= 60.0; |