diff options
author | obo <obo@openoffice.org> | 2010-06-14 15:48:08 +0200 |
---|---|---|
committer | obo <obo@openoffice.org> | 2010-06-14 15:48:08 +0200 |
commit | 17ae4c5cc34ac5c0543a4c56ecabcf5ac86f3422 (patch) | |
tree | 2d474a74a580d3406e93bfb6b5533843adb371e1 /svx/source/svdraw/svdocirc.cxx | |
parent | d90357ca774dd72600c7498045d714375bb670ad (diff) | |
parent | b9eab08ec09621055a7366ef938b2c68cf2d0a97 (diff) |
CWS-TOOLING: integrate CWS aw081
Diffstat (limited to 'svx/source/svdraw/svdocirc.cxx')
-rw-r--r-- | svx/source/svdraw/svdocirc.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdocirc.cxx b/svx/source/svdraw/svdocirc.cxx index 12cdeac9ef85..4c600cba821f 100644 --- a/svx/source/svdraw/svdocirc.cxx +++ b/svx/source/svdraw/svdocirc.cxx @@ -239,8 +239,9 @@ basegfx::B2DPolygon SdrCircObj::ImpCalcXPolyCirc(const SdrObjKind eCicrleKind, c else { // mirror start, end for geometry creation since model coordinate system is mirrored in Y - const double fStart(((36000 - nEnd) % 36000) * F_PI18000); - const double fEnd(((36000 - nStart) % 36000) * F_PI18000); + // #i111715# increase numerical correctness by first dividing and not using F_PI1800 + const double fStart((((36000 - nEnd) % 36000) / 18000.0) * F_PI); + const double fEnd((((36000 - nStart) % 36000) / 18000.0) * F_PI); // create circle segment. This is not closed by default aCircPolygon = basegfx::tools::createPolygonFromEllipseSegment( |