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 /sw | |
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 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 3 | ||||
-rw-r--r-- | sw/source/uibase/ribbar/concustomshape.cxx | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index d7925942c954..905cfb6c683f 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -930,8 +930,7 @@ SdrObject* SwMSDffManager::ProcessObj(SvStream& rSt, Point aPivot(rTextRect.TopLeft()); aPivot.AdjustX(nMinWH ); aPivot.AdjustY(nMinWH ); - double a = nTextRotationAngle * F_PI18000; - pObj->NbcRotate(aPivot, nTextRotationAngle, sin(a), cos(a)); + pObj->NbcRotate(aPivot, nTextRotationAngle); } } diff --git a/sw/source/uibase/ribbar/concustomshape.cxx b/sw/source/uibase/ribbar/concustomshape.cxx index a90652f1b6ef..be3820dab9b1 100644 --- a/sw/source/uibase/ribbar/concustomshape.cxx +++ b/sw/source/uibase/ribbar/concustomshape.cxx @@ -139,10 +139,7 @@ void ConstCustomShape::SetAttributes( SdrObject* pObj ) pObj->SetMergedItemSet( aDest ); sal_Int32 nAngle = pSourceObj->GetRotateAngle(); if ( nAngle ) - { - double a = nAngle * F_PI18000; - pObj->NbcRotate( pObj->GetSnapRect().Center(), nAngle, sin( a ), cos( a ) ); - } + pObj->NbcRotate( pObj->GetSnapRect().Center(), nAngle ); bAttributesAppliedFromGallery = true; } } |