tdf#119531: use correct conversion direction
Regression from commit 8c48d69f06
Change-Id: I302a210ab6c502e3938487ee02a08fc334cd3289
Reviewed-on: https://gerrit.libreoffice.org/59666
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user