From: azv Date: Tue, 25 Aug 2015 08:05:20 +0000 (+0300) Subject: Enlarge list of attributes stored in constraint Length for correct verification of... X-Git-Tag: V_1.4.0_beta4~258 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f3574f89e45265d8c8cd0d322c8b3ba81bf60867;p=modules%2Fshaper.git Enlarge list of attributes stored in constraint Length for correct verification of update (issue #795) --- diff --git a/src/SketchSolver/SketchSolver_ConstraintLength.cpp b/src/SketchSolver/SketchSolver_ConstraintLength.cpp index bf519342b..06d854d17 100644 --- a/src/SketchSolver/SketchSolver_ConstraintLength.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintLength.cpp @@ -37,6 +37,8 @@ void SketchSolver_ConstraintLength::process() void SketchSolver_ConstraintLength::adjustConstraint() { // No need to store the line, which length is constrained - myFeatureMap.clear(); + // Upd: The line need to be stored to check that constraint + // is changed/unchanged during modifications in GUI + //myFeatureMap.clear(); } diff --git a/src/SketchSolver/SketchSolver_Group.cpp b/src/SketchSolver/SketchSolver_Group.cpp index 6b8326b02..08f594fe7 100644 --- a/src/SketchSolver/SketchSolver_Group.cpp +++ b/src/SketchSolver/SketchSolver_Group.cpp @@ -625,6 +625,9 @@ void SketchSolver_Group::removeConstraint(ConstraintPtr theConstraint) isFullyRemoved = false; break; } + if (aCIter == myConstraints.end()) + return; + if (isFullyRemoved) myConstraints.erase(aCIter); else if (aCIter != myConstraints.end() &&