summaryrefslogtreecommitdiff
path: root/drawinglayer/source
diff options
context:
space:
mode:
authorSohrab Kazak <sohrab.kazak@gmail.com>2024-08-26 15:08:06 -0700
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-09-16 06:59:43 +0200
commit7109e1ea64a12e74d5e9a1b00cfbd447d61e8e61 (patch)
tree2e14f54570f9a245277293e9efca1ac15095ca94 /drawinglayer/source
parent905e7c1105536c9757fa2c2faf670738aab02595 (diff)
tdf#160084 Simplify comparison for basegfx::fTools
Change-Id: I58a82179181cc1f783fc40b146c09668508a8883 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173149 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'drawinglayer/source')
-rw-r--r--drawinglayer/source/primitive2d/polygonprimitive2d.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/drawinglayer/source/primitive2d/polygonprimitive2d.cxx b/drawinglayer/source/primitive2d/polygonprimitive2d.cxx
index ab36bc6b4c18..77800ed45417 100644
--- a/drawinglayer/source/primitive2d/polygonprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/polygonprimitive2d.cxx
@@ -681,13 +681,13 @@ PolygonWavePrimitive2D::getB2DRange(const geometry::ViewInformation2D& rViewInfo
basegfx::B2DRange aRetval(PolygonStrokePrimitive2D::getB2DRange(rViewInformation));
// if WaveHeight, grow by it
- if (basegfx::fTools::more(getWaveHeight(), 0.0))
+ if (getWaveHeight() > 0.0)
{
aRetval.grow(getWaveHeight());
}
// if line width, grow by it
- if (basegfx::fTools::more(getLineAttribute().getWidth(), 0.0))
+ if (getLineAttribute().getWidth() > 0.0)
{
aRetval.grow(getLineAttribute().getWidth() * 0.5);
}