Fixed usage of std::abs() in polar pattern

This commit is contained in:
Jan Rheinländer 2014-01-11 19:17:19 +01:00 committed by Stefan Tröger
parent 4b2f107cc1
commit 4c9b9adde6

View File

@ -75,7 +75,7 @@ const std::list<gp_Trsf> PolarPattern::getTransformations(const std::vector<App:
bool reversed = Reversed.getValue();
double offset;
if (std::abs(angle - 360.0) < Precision::Confusion())
if (std::fabs(angle - 360.0) < Precision::Confusion())
offset = Base::toRadians<double>(angle) / occurrences; // Because e.g. two occurrences in 360 degrees need to be 180 degrees apart
else
offset = Base::toRadians<double>(angle) / (occurrences - 1);