svx/source/svdraw/svddrgmt.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 9961c0d9cfa7c12e7536d3e0696d6ff73d4fe2de Author: Noel Grandin <[email protected]> AuthorDate: Wed Dec 30 13:53:47 2020 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Fri Jan 1 10:51:51 2021 +0100 use precalculated values in SdrDragShear we already precalculate sin/cos/tan, so use them. Change-Id: I0831af4e60dc370de78b0800e1b76fcf6ecf8c11 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108519 Tested-by: Jenkins Reviewed-by: Noel Grandin <[email protected]> diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx index 6f6ac53a11fa..0915dfc274c1 100644 --- a/svx/source/svdraw/svddrgmt.cxx +++ b/svx/source/svdraw/svddrgmt.cxx @@ -2045,7 +2045,7 @@ PointerStyle SdrDragResize::GetSdrDragPointer() const void SdrDragRotate::applyCurrentTransformationToSdrObject(SdrObject& rTarget) { - rTarget.Rotate(DragStat().GetRef1(), nAngle, sin(nAngle * F_PI18000), cos(nAngle * F_PI18000)); + rTarget.Rotate(DragStat().GetRef1(), nAngle, nSin, nCos); } SdrDragRotate::SdrDragRotate(SdrDragView& rNewView) @@ -2402,7 +2402,7 @@ void SdrDragShear::applyCurrentTransformationToSdrObject(SdrObject& rTarget) if (nAngle!=0) { - rTarget.Shear(DragStat().GetRef1(), nAngle, tan(nAngle * F_PI18000), bVertical); + rTarget.Shear(DragStat().GetRef1(), nAngle, nTan, bVertical); } } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
