summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedricbosdo@openoffice.org>2011-03-15 13:37:10 +0100
committerCédric Bosdonnat <cedricbosdo@openoffice.org>2011-03-19 17:57:19 +0100
commit1b3d92e7beeee1a3c819b43be1562d8bcb5d1097 (patch)
treeaf0afe3fa1f4c036c6bbeddfc10d1730338717b4 /svx
parent67d0e75c7c22844cfba842bb7ff9ba53b0125677 (diff)
No tools value for pi or the basegfx methods will give unprecise results
Diffstat (limited to 'svx')
-rwxr-xr-xsvx/source/dialog/framelink.cxx3
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;
}