chart2/source/view/main/DummyXShape.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 1a37a61be4a39079d6e9fa671d04036a56510281
Author: Markus Mohrhard <markus.mohrh...@googlemail.com>
Date:   Sat Feb 1 13:20:05 2014 +0100

    Revert "use fmod and make code simpler"
    
    This reverts commit 66ef9bc4aa0d0bd364d20373360ad2361394a871.

diff --git a/chart2/source/view/main/DummyXShape.cxx 
b/chart2/source/view/main/DummyXShape.cxx
index d7dcf1d..44da917 100644
--- a/chart2/source/view/main/DummyXShape.cxx
+++ b/chart2/source/view/main/DummyXShape.cxx
@@ -351,8 +351,9 @@ void DummyPieSegment2D::render()
 {
     DummyChart* pChart = getRootShape();
 
-    mfUnitCircleWidthAngleDegree = std::fmod(mfUnitCircleWidthAngleDegree, 
360.0);
-    if(mfUnitCircleWidthAngleDegree)
+    while(mfUnitCircleWidthAngleDegree>360)
+        mfUnitCircleWidthAngleDegree -= 360.0;
+    while(mfUnitCircleWidthAngleDegree<0)
         mfUnitCircleWidthAngleDegree += 360.0;
 
     pChart->m_GLRender.GeneratePieSegment2D(mfUnitCircleInnerRadius, 
mfUnitCircleOuterRadius,
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to