Skip to content

Commit

Permalink
Sketcher: Fix #3658 Levenberg-Marquardt solver precision issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepSOIC authored and wwmayer committed Mar 24, 2020
1 parent 6d3f8ff commit bdc23aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Sketcher/App/planegcs/GCS.cpp
Expand Up @@ -1740,7 +1740,7 @@ int System::solve_LM(SubSystem* subsys, bool isRedundantsolving)

// check error
double err=e.squaredNorm();
if (err <= eps) { // error is small, Success
if (err <= eps*eps) { // error is small, Success
stop = 1;
break;
}
Expand Down

0 comments on commit bdc23aa

Please sign in to comment.