include/basegfx/matrix/hommatrixtemplate.hxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit eab3f93502e0867559cb5d44a3e5d9f97253900c Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Wed Jul 30 11:31:26 2025 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Thu Jul 31 14:02:39 2025 +0200 cid#1659720 silence Division or modulo by float zero Change-Id: If7fde07f27275f4f2d7ce7b4171f91e3df36c4ae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188607 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/include/basegfx/matrix/hommatrixtemplate.hxx b/include/basegfx/matrix/hommatrixtemplate.hxx index 4f1300f53318..e99e84f05718 100644 --- a/include/basegfx/matrix/hommatrixtemplate.hxx +++ b/include/basegfx/matrix/hommatrixtemplate.hxx @@ -21,6 +21,7 @@ #include <sal/types.h> #include <basegfx/numeric/ftools.hxx> +#include <cassert> #include <cmath> namespace basegfx::internal @@ -154,6 +155,7 @@ namespace basegfx::internal return false; } + assert(fBig != 0.0 && "help coverity see it's not zero"); fStorage[a] = 1.0 / fBig; }