diff options
-rw-r--r-- | include/basegfx/numeric/ftools.hxx | 3 | ||||
-rw-r--r-- | vcl/source/outdev/textline.cxx | 3 |
2 files changed, 1 insertions, 5 deletions
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))); } |