diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-08-18 07:39:41 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-08-18 08:53:52 +0200 |
commit | ca3557bedef8dd968f6455875f574357801902c7 (patch) | |
tree | 4f1c76546a637590bbb3882d053ac74519d51f7f | |
parent | 5b025285b3528910a4360899abb2bbbaadc72c97 (diff) |
Simplify SdrTextObj::RecalcSnapRect
Change-Id: Ieab3f3143e96af56c87720451de4194138f0463b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120590
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r-- | svx/source/svdraw/svdotext.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx index d95927545e30..eefee015e866 100644 --- a/svx/source/svdraw/svdotext.cxx +++ b/svx/source/svdraw/svdotext.cxx @@ -1115,10 +1115,7 @@ void SdrTextObj::RecalcSnapRect() { if (maGeo.nRotationAngle || maGeo.nShearAngle) { - tools::Polygon aPol(maRect); - if (maGeo.nShearAngle) ShearPoly(aPol,maRect.TopLeft(),maGeo.mfTanShearAngle); - if (maGeo.nRotationAngle) RotatePoly(aPol,maRect.TopLeft(),maGeo.mfSinRotationAngle,maGeo.mfCosRotationAngle); - maSnapRect=aPol.GetBoundRect(); + maSnapRect = Rect2Poly(maRect, maGeo).GetBoundRect(); } else { maSnapRect = maRect; } |