From: mpv Date: Fri, 6 Oct 2017 16:24:53 +0000 (+0300) Subject: Fix for the problem of selection of the circle center as a start point of line of... X-Git-Tag: V_2.9.0~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=12fb7d3ba34c7dae4d0ba4f65bd2eee0077e9cab;p=modules%2Fshaper.git Fix for the problem of selection of the circle center as a start point of line of another sketch. --- diff --git a/src/SketchPlugin/SketchPlugin_Projection.cpp b/src/SketchPlugin/SketchPlugin_Projection.cpp index 9b8f4e4b8..a0d8090c8 100644 --- a/src/SketchPlugin/SketchPlugin_Projection.cpp +++ b/src/SketchPlugin/SketchPlugin_Projection.cpp @@ -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 aFeaturesToBeRemoved; aFeaturesToBeRemoved.insert(aProjection); ModelAPI_Tools::removeFeaturesAndReferences(aFeaturesToBeRemoved);