Kaydet (Commit) 951f68a5 authored tarafından Mike Kaganski's avatar Mike Kaganski

tdf#119531: use correct conversion direction

Regression from commit 8c48d69f

Change-Id: I302a210ab6c502e3938487ee02a08fc334cd3289
Reviewed-on: https://gerrit.libreoffice.org/59666
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 107f0e6d
...@@ -56,7 +56,7 @@ void SidebarDialControl::HandleMouseEvent( const Point& rPos, bool bInitial ) ...@@ -56,7 +56,7 @@ void SidebarDialControl::HandleMouseEvent( const Point& rPos, bool bInitial )
if( fH != 0.0 ) if( fH != 0.0 )
{ {
double fAngle = acos( nX / fH ); 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 ) if( nY < 0 )
nAngle = 36000 - nAngle; nAngle = 36000 - nAngle;
if( bInitial ) // round to entire 15 degrees if( bInitial ) // round to entire 15 degrees
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment