]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Wrong case correction: start translation, select compsolid, activate value control...
authornds <nds@opencascade.com>
Thu, 26 May 2016 11:06:36 +0000 (14:06 +0300)
committernds <nds@opencascade.com>
Thu, 26 May 2016 11:06:59 +0000 (14:06 +0300)
src/PartSet/PartSet_CustomPrs.cpp

index 8c268fd1d2754375195ff041dc945ec1ea0031c9..604e593c2d711f41d2dadf84d650090edde09517 100755 (executable)
@@ -60,9 +60,7 @@ bool PartSet_CustomPrs::activate(const FeaturePtr& theFeature,
 
   bool isModified = false;
   if (theFeature.get()) {
-    displayPresentation(ModuleBase_IModule::CustomizeArguments, theUpdateViewer);
-    displayPresentation(ModuleBase_IModule::CustomizeResults, theUpdateViewer);
-    displayPresentation(ModuleBase_IModule::CustomizeHighlightedObjects, theUpdateViewer);
+    displayPresentation(theFlag, theUpdateViewer);
     isModified = true;
   }
   return isModified;
@@ -72,14 +70,8 @@ bool PartSet_CustomPrs::deactivate(const ModuleBase_IModule::ModuleBase_Customiz
                                    const bool theUpdateViewer)
 {
   myIsActive[theFlag] = false;
-  bool isModified = false;
-
-  erasePresentation(ModuleBase_IModule::CustomizeArguments, theUpdateViewer);
-  erasePresentation(ModuleBase_IModule::CustomizeResults, theUpdateViewer);
-  erasePresentation(ModuleBase_IModule::CustomizeHighlightedObjects, theUpdateViewer);
-  isModified = true;
-
-  return isModified;
+  erasePresentation(theFlag, theUpdateViewer);
+  return true;
 }
 
 bool PartSet_CustomPrs::displayPresentation(