From aba18c686236b660d679c602c9e2c662c9eae95f Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 3 Apr 2017 10:45:52 +0300 Subject: [PATCH] Issues #2027: trim on cirlce(arc will be created). Result of selected will clear selected object set in the trim --- src/PartSet/PartSet_SketcherReentrantMgr.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.39.2