cid#1659758 silence Division or modulo by float zero

Change-Id: I263e8d0e2658bfa4de30c4954101a9126609917e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189256
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
This commit is contained in:
Caolán McNamara
2025-08-09 15:02:20 +02:00
committed by David Gilbert
parent abd7996a8b
commit 3a5bddfa56
+2
View File
@@ -183,6 +183,8 @@ namespace svgio::svgreader
frX = frY;
}
assert(fWidth != 0 && fHeight != 0 && "help coverity see it's not zero");
frX /= fWidth;
frY /= fHeight;