vcl/source/filter/idxf/dxfvec.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 8a044b089e1ec3da3a3bc7f1a18555f7e19a4fd0
Author:     Ramreiso Kashung <ramreiso...@gmail.com>
AuthorDate: Wed Dec 22 14:35:06 2021 +0530
Commit:     Hossein <hoss...@libreoffice.org>
CommitDate: Wed Dec 29 22:27:00 2021 +0100

    tdf#146479 - Use basegfx fTools for converting the angle unit
    
    Change-Id: I0436aae81d6f89f44a8da91324ac1ccaa2f107d5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127300
    Tested-by: Hossein <hoss...@libreoffice.org>
    Reviewed-by: Hossein <hoss...@libreoffice.org>

diff --git a/vcl/source/filter/idxf/dxfvec.cxx 
b/vcl/source/filter/idxf/dxfvec.cxx
index 168f597597c2..dc5f39835909 100644
--- a/vcl/source/filter/idxf/dxfvec.cxx
+++ b/vcl/source/filter/idxf/dxfvec.cxx
@@ -72,8 +72,8 @@ DXFTransform::DXFTransform(double fScaleX, double fScaleY, 
double fScaleZ,
     aMZ(0.0, 0.0, fScaleZ),
     aMP(rShift)
 {
-    aMX.fx=cos(3.14159265359/180.0*fRotAngle);
-    aMX.fy=sin(3.14159265359/180.0*fRotAngle);
+    aMX.fx=cos(basegfx::deg2rad(fRotAngle));
+    aMX.fy=sin(basegfx::deg2rad(fRotAngle));
     aMY.fx=-aMX.fy;
     aMY.fy=aMX.fx;
     aMX*=fScaleX;
@@ -221,7 +221,7 @@ LineInfo DXFTransform::Transform(const DXFLineInfo& 
aDXFLineInfo) const
 
 double DXFTransform::CalcRotAngle() const
 {
-    return atan2(aMX.fy,aMX.fx)/3.14159265359*180.0;
+    return basegfx::rad2deg(atan2(aMX.fy,aMX.fx));
 }
 
 bool DXFTransform::Mirror() const

Reply via email to