From 4f591786ccbb4274aa575c20d3d31a9ca8d3da8d Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Mon, 17 Feb 2025 15:03:42 +0500 Subject: Simplify some uses of basegfx::utils::create*B2DHomMatrix The additional zero checks are unneeded (the creation functions do that internally). And in one case, a simpler function exists. Change-Id: I481b3d22b8081cbfad545c343b04f7f3330b0eba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181769 Reviewed-by: Mike Kaganski Tested-by: Jenkins --- xmloff/source/draw/ximpshap.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx index 6b742be164ae..26b4d7f1e95b 100644 --- a/xmloff/source/draw/ximpshap.cxx +++ b/xmloff/source/draw/ximpshap.cxx @@ -583,8 +583,8 @@ void SdXMLShapeContext::SetTransformation() basegfx::B2DHomMatrix aB2DHomMatrix; aB2DHomMatrix = basegfx::utils::createScaleShearXRotateTranslateB2DHomMatrix( aScale, - basegfx::fTools::equalZero(fShearX) ? 0.0 : -fShearX, - basegfx::fTools::equalZero(fRotate) ? 0.0 : fRotate, + -fShearX, + fRotate, aTranslate); drawing::HomogenMatrix3 aUnoMatrix; -- cgit