diff options
author | Bogdan Buzea <buzea.bogdan@libreoffice.org> | 2024-08-17 12:43:46 +0200 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-09-03 16:11:57 +0200 |
commit | a28cae7899a6fd0977919fd907396c70d92e41c2 (patch) | |
tree | 33113438f64171cf4e231a68357371652e270d57 /svx | |
parent | de9e0ee798df858d124abbfaff10608672dee69d (diff) |
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 <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdoashp.cxx | 4 | ||||
-rw-r--r-- | svx/source/svdraw/svdobj.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
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())); |