From 74d46954cd4a1e2377573683c3a2f7f7033ffb5b Mon Sep 17 00:00:00 2001 From: Bogdan Buzea Date: Mon, 18 Nov 2024 06:38:06 +0100 Subject: [PATCH] tdf#160084 Simplify comparison for basegfx::fTools Change-Id: I6ae56ad61ceec5bc34898befd636a0ceae8266e5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176700 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- svx/source/sdr/overlay/overlaytools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svx/source/sdr/overlay/overlaytools.cxx b/svx/source/sdr/overlay/overlaytools.cxx index 5fe5d20ab784..6642005039eb 100644 --- a/svx/source/sdr/overlay/overlaytools.cxx +++ b/svx/source/sdr/overlay/overlaytools.cxx @@ -328,7 +328,7 @@ sal_uInt32 OverlayStaticRectanglePrimitive::getPrimitive2DID() const aPolyPolygon.append(aInnerPolygon); // create fill primitive - if (basegfx::fTools::lessOrEqual(getTransparence(), 0.0)) + if (getTransparence() <= 0.0) { // no transparence aRetval = new PolyPolygonColorPrimitive2D(