diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-12-28 21:09:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-29 19:10:41 +0100 |
commit | 388c0893a2defa4296fbad31c2add980079b4fee (patch) | |
tree | 4b53f7ea682ab8f705b891f44c03134346f9d3a7 /cppcanvas | |
parent | 8c87e3d63a6e9d498a4e5da1bcc4a10451c1a7f9 (diff) |
use new toRadians function in more places
Change-Id: Id9da8dadab277b62053071a59813d7a4bd38f345
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108432
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index eea91a021e6b..bf93f6bf2e3e 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -574,7 +574,7 @@ namespace cppcanvas::internal const ::basegfx::B2DVector aOffset( rGradient.GetOfsX() / 100.0, rGradient.GetOfsY() / 100.0); - double fRotation( rGradient.GetAngle().get() * M_PI / 1800.0 ); + double fRotation = toRadians( rGradient.GetAngle() ); const double fBorder( rGradient.GetBorder() / 100.0 ); basegfx::B2DHomMatrix aRot90; |