From a28cae7899a6fd0977919fd907396c70d92e41c2 Mon Sep 17 00:00:00 2001 From: Bogdan Buzea Date: Sat, 17 Aug 2024 12:43:46 +0200 Subject: tdf#160084 Simplify comparison for basegfx::fTools Change-Id: I5fc9823b6d0ca88505e8d4e6127fac7e776fa1a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171784 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas Reviewed-by: Ilmari Lauhakangas --- svx/source/svdraw/svdoashp.cxx | 4 ++-- svx/source/svdraw/svdobj.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'svx/source') diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx index fb9cf0a9923f..71fab52bb0ae 100644 --- a/svx/source/svdraw/svdoashp.cxx +++ b/svx/source/svdraw/svdoashp.cxx @@ -3055,9 +3055,9 @@ void SdrObjCustomShape::TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix, SetLogicRect(aBaseRect); // Apply flipping from Matrix, which is a transformation relative to origin - if (basegfx::fTools::less(aScale.getX(), 0.0)) + if (aScale.getX() < 0.0) Mirror(Point(0, 0), Point(0, 1000)); // mirror on the y-axis - if (basegfx::fTools::less(aScale.getY(), 0.0)) + if (aScale.getY() < 0.0) Mirror(Point(0, 0), Point(1000, 0)); // mirror on the x-axis // shear? diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx index da43e65d0fb7..01d120b97acf 100644 --- a/svx/source/svdraw/svdobj.cxx +++ b/svx/source/svdraw/svdobj.cxx @@ -3037,7 +3037,7 @@ void SdrObject::TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix, const ba // #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())); -- cgit