Sketcher: Solver angle -pi,pi conversion corrected

fixes #3288
This commit is contained in:
Abdullah Tahiri
2018-01-01 14:07:53 +01:00
committed by wmayer
parent 27cff5ce85
commit ec678e234e

View File

@@ -2749,7 +2749,7 @@ bool Sketch::updateNonDrivingConstraints()
}
else if((*it).constr->Type==Angle) {
(*it).constr->setValue(std::fmod(*((*it).value), M_PI));
(*it).constr->setValue(std::remainder(*((*it).value), 2.0*M_PI));
}
else {
(*it).constr->setValue(*((*it).value));