cid#1660547 avoid Division or modulo by float zero warning

and

cid#1659880 Division or modulo by float zero

drop the default arguments, they are always explicitly set
except for one single case.

Change-Id: I1fce4e7f6ff5c9421c40628e0b6a1e291650e51c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189862
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara
2025-08-18 16:30:36 +02:00
parent 0fe96c758b
commit f2eda851f7
3 changed files with 11 additions and 31 deletions
+3 -2
View File
@@ -304,8 +304,9 @@ namespace slideshow::internal
ENSURE_OR_RETURN_FALSE( mpAttrLayer && mpShape,
"PathAnimation::operator(): Invalid ShapeAttributeLayer" );
::basegfx::B2DPoint rOutPos = ::basegfx::utils::getPositionRelative( maPathPoly,
nValue );
::basegfx::B2DPoint rOutPos = ::basegfx::utils::getPositionRelative(maPathPoly,
nValue,
basegfx::utils::getLength(maPathPoly));
// TODO(F1): Determine whether the path is
// absolute, or shape-relative.