svx/source/svdraw/svdopath.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 744e7419e0c85a926fc4576c0def94f0248326cb
Author:     bruh <randomfores...@gmail.com>
AuthorDate: Sun Jan 19 23:44:09 2025 +0530
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Tue Jan 21 08:16:42 2025 +0100

    tdf#160084 Simplify comparison with zero when using basegfx::fTools::less
    
    Change-Id: Ide5fff5ad3ad7322fc5955eb06ad14da83451abf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180482
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx
index 84ef3909c7b5..f4a3cd80e458 100644
--- a/svx/source/svdraw/svdopath.cxx
+++ b/svx/source/svdraw/svdopath.cxx
@@ -2900,7 +2900,7 @@ void SdrPathObj::TRSetBaseGeometry(const 
basegfx::B2DHomMatrix& rMatrix, const b
 
     // #i75086# Old DrawingLayer (GeoStat and geometry) does not support 
holding negative scalings
     // in X and Y which equal a 180 degree rotation. Recognize it and react 
accordingly
-    if(basegfx::fTools::less(aScale.getX(), 0.0) && 
basegfx::fTools::less(aScale.getY(), 0.0))
+    if(aScale.getX() < 0.0 && aScale.getY() < 0.0)
     {
         aScale.setX(fabs(aScale.getX()));
         aScale.setY(fabs(aScale.getY()));
@@ -2931,8 +2931,8 @@ void SdrPathObj::TRSetBaseGeometry(const 
basegfx::B2DHomMatrix& rMatrix, const b
     // #i75086#
     // Given polygon is already scaled (for historical reasons), but not 
mirrored yet.
     // Thus, when scale is negative in X or Y, apply the needed mirroring 
accordingly.
-    double fScaleX(basegfx::fTools::less(aScale.getX(), 0.0) ? -1.0 : 1.0);
-    double fScaleY(basegfx::fTools::less(aScale.getY(), 0.0) ? -1.0 : 1.0);
+    double fScaleX(aScale.getX() < 0.0 ? -1.0 : 1.0);
+    double fScaleY(aScale.getY() < 0.0 ? -1.0 : 1.0);
 
     // tdf#98565, tdf#98584. While loading a shape, svg:width and svg:height 
is used to scale
     // the polygon. But draw:transform might introduce additional scaling 
factors, which need to

Reply via email to