diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-03-15 13:37:10 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-03-19 17:57:19 +0100 |
commit | aa9530e734936ace04d900ec1cf7ef7fdfc728de (patch) | |
tree | 981ed198ed3e233c3ad6b352384534f4caf1ac98 /svx | |
parent | 066ff6ecfc23bb7e854642a153417e516ec4f1b2 (diff) |
No tools value for pi or the basegfx methods will give unprecise results
Diffstat (limited to 'svx')
-rwxr-xr-x | svx/source/dialog/framelink.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/dialog/framelink.cxx b/svx/source/dialog/framelink.cxx index b40aae6664..9dfa353ca6 100755 --- a/svx/source/dialog/framelink.cxx +++ b/svx/source/dialog/framelink.cxx @@ -1389,7 +1389,7 @@ double lcl_GetExtent( const Style& rBorder, const Style& rSide, const Style& rOp basegfx::B2DPoint aBasePoint( 0.0, static_cast<double>( rBorder.GetWidth() / 2 ) ); basegfx::B2DHomMatrix aRotation; - aRotation.rotate( nOtherAngle * F_PI18000 ); + aRotation.rotate( double( nOtherAngle ) * M_PI / 18000.0 ); basegfx::B2DVector aOtherVector = aRotation * aBaseVector; // Compute a line shifted by half the width of the other border @@ -1401,6 +1401,7 @@ double lcl_GetExtent( const Style& rBorder, const Style& rSide, const Style& rOp basegfx::tools::findCut( aBasePoint, aBaseVector, aOtherPoint, aOtherVector, CUTFLAG_ALL, &nCut ); + return nCut; } |