From d44ceda84000f30ac29e64e06d0e022cea38d047 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 9 Sep 2019 18:44:27 +0300 Subject: [PATCH] Backed out changeset: 91c06257daf0 --HG-- branch : release --- ChangeLog.txt | 1 - src/libs/qmuparser/qmuparser.cpp | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 45d183fe5..9e81114a4 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -30,7 +30,6 @@ - Changing settings for move and rotate tools through property browser does not take in count previous change for label point and Show label option. - Fix locking file after double save as. - Key --ignoremargins still required margins. -- Fix inverse trigonometric functions. Wrong work with degrees. # Version 0.6.1 October 23, 2018 - [#885] Regression. Broken support for multi size measurements. diff --git a/src/libs/qmuparser/qmuparser.cpp b/src/libs/qmuparser/qmuparser.cpp index 40c23523c..a675e274e 100644 --- a/src/libs/qmuparser/qmuparser.cpp +++ b/src/libs/qmuparser/qmuparser.cpp @@ -184,7 +184,7 @@ qreal QmuParser::SinD(qreal v) //--------------------------------------------------------------------------------------------------------------------- qreal QmuParser::ASinD(qreal v) { - return qAsin(qDegreesToRadians(v)); + return qRadiansToDegrees(qAsin(v)); } //--------------------------------------------------------------------------------------------------------------------- @@ -196,7 +196,7 @@ qreal QmuParser::CosD(qreal v) //--------------------------------------------------------------------------------------------------------------------- qreal QmuParser::ACosD(qreal v) { - return qAcos(qDegreesToRadians(v)); + return qRadiansToDegrees(qAcos(v)); } //--------------------------------------------------------------------------------------------------------------------- @@ -208,7 +208,7 @@ qreal QmuParser::TanD(qreal v) //--------------------------------------------------------------------------------------------------------------------- qreal QmuParser::ATanD(qreal v) { - return qAtan(qDegreesToRadians(v)); + return qRadiansToDegrees(qAtan(v)); } //---------------------------------------------------------------------------------------------------------------------