From: azv Date: Wed, 17 May 2017 08:30:08 +0000 (+0300) Subject: Fix jumping a feature to the Origin while moving X-Git-Tag: V_2.7.1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=63736f28218dd0cef510d5cf19dc4d4b949f9beb;p=modules%2Fshaper.git Fix jumping a feature to the Origin while moving --- diff --git a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp index 1cefde032..6df3ccac6 100644 --- a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp +++ b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp @@ -441,6 +441,9 @@ void PlaneGCSSolver_Storage::refresh() const std::map::const_iterator anIt = myAttributeMap.begin(); for (; anIt != myAttributeMap.end(); ++anIt) { + if (!anIt->first->isInitialized()) + continue; + // the external feature always should keep the up to date values, so, // refresh from the solver is never needed if (isExternalAttribute(anIt->first))