]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2420 Invalid sketch after creation second circle (reentrant operation) Jenkins...
authornds <nds@opencascade.com>
Wed, 24 Jan 2018 06:38:24 +0000 (09:38 +0300)
committernds <nds@opencascade.com>
Wed, 24 Jan 2018 06:38:24 +0000 (09:38 +0300)
src/PartSet/PartSet_SketcherReentrantMgr.cpp

index 6fbeaa5d187c04b5aed49d0883851450036749d8..839da3fa082c2d3a161d055e2527272ab2e100ee 100644 (file)
@@ -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);