diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-02-26 10:18:39 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-02-26 10:12:29 +0100 |
commit | 3caf379f1c6398548c65bb7a83e3911d9a8bc444 (patch) | |
tree | c2068e498094b99865ed8e59b6b0f65fee908683 /svx/source/unodraw | |
parent | b8f83e285af000ed1ebf211c2021cc065724ea37 (diff) |
svdtrans: nPi -> M_PI; nPi180 -> F_PI18000 to remove duplicates
Change-Id: Ia2c103a5b530d007f750e4a034b253b3ec5406ec
Reviewed-on: https://gerrit.libreoffice.org/68368
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index 65ca35e38cd9..63f24d0f9e30 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -2347,8 +2347,8 @@ bool SvxShape::setPropertyValueImpl( const OUString&, const SfxItemPropertySimpl nAngle -= GetSdrObject()->GetRotateAngle(); if (nAngle!=0) { - double nSin=sin(nAngle*nPi180); - double nCos=cos(nAngle*nPi180); + double nSin = sin(nAngle * F_PI18000); + double nCos = cos(nAngle * F_PI18000); GetSdrObject()->Rotate(aRef1,nAngle,nSin,nCos); } return true; @@ -2366,7 +2366,7 @@ bool SvxShape::setPropertyValueImpl( const OUString&, const SfxItemPropertySimpl if(nShear != 0 ) { Point aRef1(GetSdrObject()->GetSnapRect().Center()); - double nTan=tan(nShear*nPi180); + double nTan = tan(nShear * F_PI18000); GetSdrObject()->Shear(aRef1,nShear,nTan,false); return true; } |