From: nds Date: Mon, 3 Apr 2017 07:45:52 +0000 (+0300) Subject: Issues #2027: trim on cirlce(arc will be created). Result of selected will clear... X-Git-Tag: V_2.7.0~100 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aba18c686236b660d679c602c9e2c662c9eae95f;p=modules%2Fshaper.git Issues #2027: trim on cirlce(arc will be created). Result of selected will clear selected object set in the trim --- diff --git a/src/PartSet/PartSet_SketcherReentrantMgr.cpp b/src/PartSet/PartSet_SketcherReentrantMgr.cpp index 82f1b3b61..b355a8869 100644 --- a/src/PartSet/PartSet_SketcherReentrantMgr.cpp +++ b/src/PartSet/PartSet_SketcherReentrantMgr.cpp @@ -286,7 +286,10 @@ void PartSet_SketcherReentrantMgr::setReentrantPreSelection( if (!aReentrantMessage.get()) return; - aReentrantMessage->setSelectedObject(mySelectedObject); + // if feature has already filled the selected object, we should not overwrite it + if (!aReentrantMessage->selectedObject().get()) + aReentrantMessage->setSelectedObject(mySelectedObject); + aReentrantMessage->setSelectedAttribute(mySelectedAttribute); aReentrantMessage->setClickedPoint(myClickedSketchPoint); }