Salome HOME
1. Create->Edit->Create is realized as 2 transaction: for the first pair the setEditO...
[modules/shaper.git] / src / ModuleBase / ModuleBase_OperationFeature.cpp
index c6762043e1d8796f78cbf4725c80ee9200dc101f..5ac197114f7e6bbf4233c31c94cd08edce8b037f 100755 (executable)
@@ -49,6 +49,15 @@ ModuleBase_OperationFeature::~ModuleBase_OperationFeature()
   clearPreselection();
 }
 
+void ModuleBase_OperationFeature::setEditOperation()
+{
+  if (isEditOperation())
+    return;
+
+  myIsEditing = true;
+  propertyPanel()->setEditingMode(isEditOperation());
+}
+
 FeaturePtr ModuleBase_OperationFeature::feature() const
 {
   return myFeature;
@@ -275,7 +284,7 @@ void ModuleBase_OperationFeature::activateByPreselection()
   if (myPreSelection.empty())
     return;
 
-  ModuleBase_ISelection::filterPreselectionOnEqualPoints(myPreSelection);
+  ModuleBase_ISelection::filterSelectionOnEqualPoints(myPreSelection);
 
   ModuleBase_ModelWidget* aFilledWgt = 0;
   ModuleBase_IPropertyPanel* aPropertyPanel = propertyPanel();