diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-12-23 09:09:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-23 17:06:56 +0100 |
commit | 666e14ba6e82dcad6912a205694978b2736e4319 (patch) | |
tree | b4f13570b51f96ee9f1e7825c4422ea55c8fa620 /oox | |
parent | 961f6db0b647614e8221185c0e8ac661d87de9b6 (diff) |
add utility NbcRotate method
Change-Id: I66d016a22158f9f9ef68a80842e95e45516f0b4e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108228
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/vml/vmlshape.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx index 7ee10203341e..5b081660148d 100644 --- a/oox/source/vml/vmlshape.cxx +++ b/oox/source/vml/vmlshape.cxx @@ -1083,8 +1083,7 @@ namespace // 100 is required because in this part of the code the angle is in a hundredth of // degrees. auto nAngle = -1 * 100.0 * rTypeModel.maRotation.toDouble(); - double nHRad = nAngle * F_PI18000; - pShape->NbcRotate(pShape->GetSnapRect().Center(), nAngle, sin(nHRad), cos(nHRad)); + pShape->NbcRotate(pShape->GetSnapRect().Center(), nAngle); } } } |