]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
refs #30 - Sketch base GUI: create, draw lines
authornds <natalia.donis@opencascade.com>
Tue, 20 May 2014 09:49:13 +0000 (13:49 +0400)
committernds <natalia.donis@opencascade.com>
Tue, 20 May 2014 09:49:13 +0000 (13:49 +0400)
Activate should be performed by the feature is updated also. In order to have correct hightligh of it.

src/PartSet/PartSet_Listener.cpp

index 9379735429ef24159a7fd121fd62d4e86a61a4fe..06af416d2126fd71e46db484992169a55ae4e3f5 100644 (file)
@@ -42,8 +42,7 @@ void PartSet_Listener::processEvent(const Events_Message* theMessage)
     if (myModule->workshop()->displayer()->IsVisible(aFeature) ||
         aType == EVENT_FEATURE_CREATED) {
       myModule->visualizePreview(aFeature, true, false);
-      if (aType == EVENT_FEATURE_CREATED)
-        myModule->activateFeature(aFeature, true);
+      myModule->activateFeature(aFeature, true);
       myModule->workshop()->displayer()->UpdateViewer();
     }
   }