X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver_ConstraintCoincidence.cpp;h=532097e9935d3b2deac470366824d307ee446953;hb=9ddba1caf0817c1e95c55d4c5b8ae6de23cbe6d5;hp=04e6db8d21c62e7c460d973106f8c830f7c4b664;hpb=c226a781a4ceda6053101f63fd3d621a18838706;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp b/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp index 04e6db8d2..532097e99 100644 --- a/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp @@ -170,6 +170,12 @@ bool SketchSolver_ConstraintCoincidence::remove(ConstraintPtr theConstraint) return false; // there is no constraint, which is specified to remove else { bool isEmpty = anExtraIt->first == SLVS_E_UNKNOWN; + if (!isEmpty) { + for (aPos = 0; aPos < (int)mySlvsConstraints.size(); aPos++) + if (mySlvsConstraints[aPos] == anExtraIt->first) + break; + aPos -= 1; + } myExtraCoincidence.erase(anExtraIt); if (isEmpty) return false;