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 | 1b3d92e7beeee1a3c819b43be1562d8bcb5d1097 (patch) | |
tree | af0afe3fa1f4c036c6bbeddfc10d1730338717b4 /svx | |
parent | 67d0e75c7c22844cfba842bb7ff9ba53b0125677 (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 b40aae6664ef..9dfa353ca683 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; } |