diff --git a/src/Mod/Sketcher/App/Sketch.cpp b/src/Mod/Sketcher/App/Sketch.cpp index b904e7396c..b9d0870c01 100644 --- a/src/Mod/Sketcher/App/Sketch.cpp +++ b/src/Mod/Sketcher/App/Sketch.cpp @@ -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));