diff --git a/thirdparty/tinyspline_lib/tinyspline.c b/thirdparty/tinyspline_lib/tinyspline.c index 0ffbce81f4..1e62235f0c 100644 --- a/thirdparty/tinyspline_lib/tinyspline.c +++ b/thirdparty/tinyspline_lib/tinyspline.c @@ -1307,6 +1307,11 @@ int ts_fequals( tsReal x, tsReal y ) { return 1; } + // KIDAD FIX for divide-by-zero + else if( y == 0.0 ) + { + return x == 0.0; + } else { const tsReal r = (tsReal) fabs( x ) > (tsReal) fabs( y ) ?