summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-11-19 21:41:59 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-11-19 21:46:06 +0100
commit13ff493f1d7bf9ba4681ff62f7f7020925306a2d (patch)
tree4fd75f34b68aea9dd3847adb6306183fb70321fb /svx
parent2a605bdd156ff047d722abeef0dcdf029f36ed30 (diff)
Use toRadians on Degree10
Change-Id: Ib0a53f1dd9c7dd2011041c1c8a6923a64ff6d0f8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125581 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/gradtrns.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/gradtrns.cxx b/svx/source/svdraw/gradtrns.cxx
index faf44656183b..d665cd48ce16 100644
--- a/svx/source/svdraw/gradtrns.cxx
+++ b/svx/source/svdraw/gradtrns.cxx
@@ -68,7 +68,7 @@ void GradTransformer::GradToVec(GradTransGradient const & rG, GradTransVector& r
if(rG.aGradient.GetAngle())
{
- const double fAngle = basegfx::deg2rad(rG.aGradient.GetAngle().get() / 10.0);
+ const double fAngle = toRadians(rG.aGradient.GetAngle());
const basegfx::B2DHomMatrix aTransformation(basegfx::utils::createRotateAroundPoint(aCenter, -fAngle));
aStartPos *= aTransformation;
@@ -91,7 +91,7 @@ void GradTransformer::GradToVec(GradTransGradient const & rG, GradTransVector& r
if(rG.aGradient.GetAngle())
{
- const double fAngle = basegfx::deg2rad(rG.aGradient.GetAngle().get() / 10.0);
+ const double fAngle = toRadians(rG.aGradient.GetAngle());
const basegfx::B2DHomMatrix aTransformation(basegfx::utils::createRotateAroundPoint(aCenter, -fAngle));
aStartPos *= aTransformation;
@@ -115,7 +115,7 @@ void GradTransformer::GradToVec(GradTransGradient const & rG, GradTransVector& r
if(rG.aGradient.GetAngle())
{
- const double fAngle = basegfx::deg2rad(rG.aGradient.GetAngle().get() / 10.0);
+ const double fAngle = toRadians(rG.aGradient.GetAngle());
const basegfx::B2DHomMatrix aTransformation(basegfx::utils::createRotateAroundPoint(aEndPos, -fAngle));
aStartPos *= aTransformation;
@@ -150,7 +150,7 @@ void GradTransformer::GradToVec(GradTransGradient const & rG, GradTransVector& r
if(rG.aGradient.GetAngle())
{
- const double fAngle = basegfx::deg2rad(rG.aGradient.GetAngle().get() / 10.0);
+ const double fAngle = toRadians(rG.aGradient.GetAngle());
const basegfx::B2DHomMatrix aTransformation(basegfx::utils::createRotateAroundPoint(aEndPos, -fAngle));
aStartPos *= aTransformation;