diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-02-01 13:20:05 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-02-02 13:42:45 +0100 |
commit | 1a37a61be4a39079d6e9fa671d04036a56510281 (patch) | |
tree | c052b6de2efaaf7f5f6bff9d3ce42933bcde7883 /chart2/source/view/main | |
parent | f1c649a9ce922d9a5ab829e3bdd2d88d719ae9a0 (diff) |
Revert "use fmod and make code simpler"
This reverts commit 66ef9bc4aa0d0bd364d20373360ad2361394a871.
Diffstat (limited to 'chart2/source/view/main')
-rw-r--r-- | chart2/source/view/main/DummyXShape.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx index d7dcf1dfb9a6..44da9175e5c7 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, |