basegfx/source/polygon/b2dpolygontools.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3305cb9eac5d073a755d6b7c7f332bbad1dd612c
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sun Nov 30 10:40:07 2025 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Dec 5 11:14:09 2025 +0100

    cid#1659880 Division or modulo by float zero
    
    Change-Id: I671b336f0b29302bd754930295ab274e95d9564f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195041
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins

diff --git a/basegfx/source/polygon/b2dpolygontools.cxx 
b/basegfx/source/polygon/b2dpolygontools.cxx
index d03994a3da70..856d55d43c36 100644
--- a/basegfx/source/polygon/b2dpolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolygontools.cxx
@@ -639,7 +639,7 @@ namespace basegfx::utils
                             }
                         }
 
-                        if(!bDone)
+                        if(!bDone && fEdgeLength != 0)
                         {
                             const double fRelativeInEdge(fDistance / 
fEdgeLength);
                             aRetval = interpolate(aRetval, aNextPoint, 
fRelativeInEdge);

Reply via email to