From 14c06d89594cd1f1c15ef5493aebf20a03ecaa89 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 24 Jan 2018 09:38:24 +0300 Subject: [PATCH] Issue #2420 Invalid sketch after creation second circle (reentrant operation) Jenkins: correction line width. --- src/PartSet/PartSet_SketcherReentrantMgr.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PartSet/PartSet_SketcherReentrantMgr.cpp b/src/PartSet/PartSet_SketcherReentrantMgr.cpp index 6fbeaa5d1..839da3fa0 100644 --- a/src/PartSet/PartSet_SketcherReentrantMgr.cpp +++ b/src/PartSet/PartSet_SketcherReentrantMgr.cpp @@ -264,8 +264,9 @@ bool PartSet_SketcherReentrantMgr::processMouseReleased(ModuleBase_IViewWindow* if (aPointWidget) { GeomShapePtr aShape; aPointWidget->getGeomSelection_(aValue, mySelectedObject, aShape); - ObjectPtr anExternalObject = aPointWidget->getExternalObjectMgr()->getExternalObjectValidated(); - // if external object has been created before staring new operation and is used as a parameter, + ObjectPtr anExternalObject = + aPointWidget->getExternalObjectMgr()->getExternalObjectValidated(); + // if external object is during reentrant operation and is used as a parameter of feature // it should be removed after the operation is restarted. (Circle feature, Projection) if (anExternalObject.get()) anExternalCreatedFeature = ModelAPI_Feature::feature(anExternalObject); -- 2.39.2