From: azv Date: Tue, 11 Apr 2017 12:26:04 +0000 (+0300) Subject: Issue #1058: Crash when creating a distance between source and translated elements X-Git-Tag: V_2.7.0~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=53301428650c668276d219b0564d2ae82e82c5b0;p=modules%2Fshaper.git Issue #1058: Crash when creating a distance between source and translated elements Show message about circular dependency for translated/rotated elements --- diff --git a/src/SketchSolver/SketchSolver_ConstraintMulti.cpp b/src/SketchSolver/SketchSolver_ConstraintMulti.cpp index 53d5b9e7f..41289a7fb 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMulti.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintMulti.cpp @@ -168,6 +168,10 @@ void SketchSolver_ConstraintMulti::adjustConstraint() std::dynamic_pointer_cast(*aPtIt); aPoint2D->setValue(aXCoord, aYCoord); } + + // update transformed entity if it exists in the storage + if (myStorage->entity(aFeature)) + myStorage->update(aFeature); } }