summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2025-02-17 15:03:42 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2025-02-17 12:48:36 +0100
commit4f591786ccbb4274aa575c20d3d31a9ca8d3da8d (patch)
treee659ea041fa8368282052fe733a487971f5c9f3d /xmloff
parentd58a0238561584cb5440e8df79fbf06737ae42af (diff)
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 <mike.kaganski@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/ximpshap.cxx4
1 files changed, 2 insertions, 2 deletions
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;