svx/source/sdr/overlay/overlaytools.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 74d46954cd4a1e2377573683c3a2f7f7033ffb5b
Author:     Bogdan Buzea <buzea.bog...@libreoffice.org>
AuthorDate: Mon Nov 18 06:38:06 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Nov 19 18:19:58 2024 +0100

    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 <xiscofa...@libreoffice.org>

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(

Reply via email to