summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-08-27 18:36:58 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2018-08-27 20:36:10 +0200
commit951f68a5ddfc7cf6a11bb91fcba0c56b7d933867 (patch)
tree45d3abc2e9512f1e9e8bca7a7679547feb72e16f
parent107f0e6dba57a5b27366a35a5cdb184079546df0 (diff)
tdf#119531: use correct conversion direction
Regression from commit 8c48d69f06ddb3cb6c807a1e7db62dddb9778ded Change-Id: I302a210ab6c502e3938487ee02a08fc334cd3289 Reviewed-on: https://gerrit.libreoffice.org/59666 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r--svx/source/sidebar/possize/SidebarDialControl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/sidebar/possize/SidebarDialControl.cxx b/svx/source/sidebar/possize/SidebarDialControl.cxx
index 55593f87e723..502f959f39e7 100644
--- a/svx/source/sidebar/possize/SidebarDialControl.cxx
+++ b/svx/source/sidebar/possize/SidebarDialControl.cxx
@@ -56,7 +56,7 @@ void SidebarDialControl::HandleMouseEvent( const Point& rPos, bool bInitial )
if( fH != 0.0 )
{
double fAngle = acos( nX / fH );
- sal_Int32 nAngle = static_cast<sal_Int32>(basegfx::deg2rad(fAngle) * 100.0);
+ sal_Int32 nAngle = static_cast<sal_Int32>(basegfx::rad2deg(fAngle) * 100.0);
if( nY < 0 )
nAngle = 36000 - nAngle;
if( bInitial ) // round to entire 15 degrees