]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the problem of selection of the circle center as a start point of line of...
authormpv <mpv@opencascade.com>
Fri, 6 Oct 2017 16:24:53 +0000 (19:24 +0300)
committermpv <mpv@opencascade.com>
Fri, 6 Oct 2017 16:24:53 +0000 (19:24 +0300)
src/SketchPlugin/SketchPlugin_Projection.cpp

index 9b8f4e4b874acc77a19a4614d6862f72879f340e..a0d8090c80bb2c9b515757176c6300227c68983b 100644 (file)
@@ -147,6 +147,7 @@ void SketchPlugin_Projection::computeProjection(const std::string& theID)
   if (hasPrevProj && !isValidProjectionType(aProjection, anEdge, aVertex)) {
     DocumentPtr aDoc = sketch()->document();
 
+    aRefAttr->setObject(data()->owner()); // to not remove of this remove reference to aProjection
     std::set<FeaturePtr> aFeaturesToBeRemoved;
     aFeaturesToBeRemoved.insert(aProjection);
     ModelAPI_Tools::removeFeaturesAndReferences(aFeaturesToBeRemoved);