include/basegfx/numeric/ftools.hxx |    3 ---
 vcl/source/outdev/textline.cxx     |    3 +--
 2 files changed, 1 insertion(+), 5 deletions(-)

New commits:
commit b8ef63c9fb3a1d4fb4a5549d28067cde07a8ab13
Author:     Mike Kaganski <[email protected]>
AuthorDate: Thu Nov 18 16:29:19 2021 +0200
Commit:     Mike Kaganski <[email protected]>
CommitDate: Thu Nov 18 21:19:30 2021 +0100

    Drop F_PI180
    
    Change-Id: I36783d6fd6f439a71bc46959cd859b48d65ee30f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125449
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/include/basegfx/numeric/ftools.hxx 
b/include/basegfx/numeric/ftools.hxx
index 6009e839b11b..102e3b324942 100644
--- a/include/basegfx/numeric/ftools.hxx
+++ b/include/basegfx/numeric/ftools.hxx
@@ -36,9 +36,6 @@
 #ifndef F_PI4
 #define F_PI4       M_PI_4
 #endif
-#ifndef F_PI180
-#define F_PI180     (M_PI/180.0)
-#endif
 #ifndef F_PI1800
 #define F_PI1800    (M_PI/1800.0)
 #endif
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)));
     }

Reply via email to