X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_Listener.cpp;h=f66ac66b4d4c9b85bf70c37870dbe73d5b2ecc92;hb=2833d61c7ee9a9d8b3f212e8b06fbd5375197c0a;hp=43709df50c354fb6150680e67b6f9f8cab3cff5f;hpb=730e32c2a13c666f4d76808b4904c5727e3d11af;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_Listener.cpp b/src/PartSet/PartSet_Listener.cpp index 43709df50..f66ac66b4 100644 --- a/src/PartSet/PartSet_Listener.cpp +++ b/src/PartSet/PartSet_Listener.cpp @@ -17,8 +17,6 @@ #include #include -#include - #ifdef _DEBUG #include #endif @@ -60,10 +58,10 @@ void PartSet_Listener::processEvent(const boost::shared_ptr& the for (; anIt != aLast; anIt++) { ObjectPtr aObj = (*anIt); aDisplayer->deactivate(aObj); - boost::shared_ptr aSketch = - boost::dynamic_pointer_cast(aObj); - if (aSketch) // Activate sketcher for planes selection - myModule->activateFeature(aSketch, false); + boost::shared_ptr aFeature = + boost::dynamic_pointer_cast(aObj); + if (aFeature && (aFeature->getKind() == "Sketch")) // Activate sketcher for planes selection + myModule->activateFeature(aFeature, false); // If current operation is Sketch then there is no active sketching operation // and possible the object was created by Redo operatgion else if (aSketchOp) {