summaryrefslogtreecommitdiff
path: root/drawinglayer/source
diff options
context:
space:
mode:
authorBogdan Buzea <buzea.bogdan@libreoffice.org>2024-11-19 16:55:33 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2024-12-02 08:39:08 +0100
commitd8e7a3b2457cde49deb2f88ff1070ce54000f659 (patch)
tree8bb4a9c293cdee7570de7f2cad139598d7d8c8a5 /drawinglayer/source
parentb537e5b6d50988458aca8893393451d2c3d255e9 (diff)
tdf#160084 Simplify comparison for basegfx::fTools
Change-Id: I8ef1df248d3ed9fbc804e53897ca934cce9683e3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176779 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'drawinglayer/source')
-rw-r--r--drawinglayer/source/processor2d/hittestprocessor2d.cxx6
-rw-r--r--drawinglayer/source/processor3d/shadow3dextractor.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/drawinglayer/source/processor2d/hittestprocessor2d.cxx b/drawinglayer/source/processor2d/hittestprocessor2d.cxx
index 435bc7f804fe..d9b71b00e825 100644
--- a/drawinglayer/source/processor2d/hittestprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/hittestprocessor2d.cxx
@@ -320,7 +320,7 @@ namespace drawinglayer::processor2d
const primitive2d::PolygonStrokePrimitive2D& rPolygonCandidate(static_cast< const primitive2d::PolygonStrokePrimitive2D& >(rCandidate));
const attribute::LineAttribute& rLineAttribute = rPolygonCandidate.getLineAttribute();
- if(basegfx::fTools::more(rLineAttribute.getWidth(), 0.0))
+ if(rLineAttribute.getWidth() > 0.0)
{
if(basegfx::B2DLineJoin::Miter == rLineAttribute.getLineJoin())
{
@@ -357,13 +357,13 @@ namespace drawinglayer::processor2d
double fLogicHitTolerance(0.0);
// if WaveHeight, grow by it
- if(basegfx::fTools::more(rPolygonCandidate.getWaveHeight(), 0.0))
+ if(rPolygonCandidate.getWaveHeight() > 0.0)
{
fLogicHitTolerance += rPolygonCandidate.getWaveHeight();
}
// if line width, grow by it
- if(basegfx::fTools::more(rPolygonCandidate.getLineAttribute().getWidth(), 0.0))
+ if(rPolygonCandidate.getLineAttribute().getWidth() > 0.0)
{
fLogicHitTolerance += rPolygonCandidate.getLineAttribute().getWidth() * 0.5;
}
diff --git a/drawinglayer/source/processor3d/shadow3dextractor.cxx b/drawinglayer/source/processor3d/shadow3dextractor.cxx
index d26d3219dfca..543787897bc3 100644
--- a/drawinglayer/source/processor3d/shadow3dextractor.cxx
+++ b/drawinglayer/source/processor3d/shadow3dextractor.cxx
@@ -80,7 +80,7 @@ namespace drawinglayer::processor3d
0, // shadow3d doesn't have rPrimitive.getShadowBlur() yet.
std::move(aNewSubList));
- if(basegfx::fTools::more(rPrimitive.getShadowTransparence(), 0.0))
+ if(rPrimitive.getShadowTransparence() > 0.0)
{
// create simpleTransparencePrimitive, add created primitives
primitive2d::Primitive2DContainer aNewTransPrimitiveVector { pNew };