From 377e3eebce196a22c6029d9364b0e9656cc646ad Mon Sep 17 00:00:00 2001 From: logari81 Date: Mon, 16 Apr 2012 16:31:52 +0200 Subject: [PATCH] Sketcher: small fix in listing of conflicting constraints --- src/Mod/Sketcher/App/freegcs/GCS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/App/freegcs/GCS.cpp b/src/Mod/Sketcher/App/freegcs/GCS.cpp index 10b2492cd..d17e79b5c 100644 --- a/src/Mod/Sketcher/App/freegcs/GCS.cpp +++ b/src/Mod/Sketcher/App/freegcs/GCS.cpp @@ -1285,7 +1285,7 @@ int System::diagnose(VEC_pD ¶ms, VEC_I &conflicting) conflictingIndex.resize(constr_num-rank); for (int j=rank; j < constr_num; j++) { for (int row=0; row < rank; row++) { - if (R(row,j) != 0) { + if (fabs(R(row,j)) > 1e-10) { int orig_col = qrJT.colsPermutation().indices()[row]; conflictingIndex[j-rank].push_back(orig_col); }