summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-11-18 16:29:19 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-11-18 21:19:30 +0100
commitb8ef63c9fb3a1d4fb4a5549d28067cde07a8ab13 (patch)
tree3ec3e9b37e9793a1de73fe86147103e2fd90e7ea /vcl
parentca476ce3bc76b9a6073bcd587eceb30115ce103f (diff)
Drop F_PI180
Change-Id: I36783d6fd6f439a71bc46959cd859b48d65ee30f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125449 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/outdev/textline.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/outdev/textline.cxx b/vcl/source/outdev/textline.cxx
index 7015d768986c..5fe1538f37f4 100644
--- a/vcl/source/outdev/textline.cxx
+++ b/vcl/source/outdev/textline.cxx
@@ -1002,8 +1002,7 @@ void OutputDevice::DrawWaveLine(const Point& rStartPos, const Point& rEndPos, to
// handle rotation
if (nStartY != nEndY || nStartX > nEndX)
{
- fOrientation = std::atan2(nStartY - nEndY, nEndX - nStartX);
- fOrientation /= F_PI180;
+ fOrientation = basegfx::rad2deg(std::atan2(nStartY - nEndY, nEndX - nStartX));
// un-rotate the end point
aStartPt.RotateAround(nEndX, nEndY, Degree10(static_cast<sal_Int16>(-fOrientation * 10.0)));
}