[Libreoffice-commits] core.git: svx/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Aug 27 18:36:31 UTC 2018
svx/source/sidebar/possize/SidebarDialControl.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 951f68a5ddfc7cf6a11bb91fcba0c56b7d933867
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Mon Aug 27 18:36:58 2018 +0200
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Mon Aug 27 20:36:10 2018 +0200
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 at collabora.com>
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
More information about the Libreoffice-commits
mailing list