From: nds Date: Thu, 26 May 2016 11:06:36 +0000 (+0300) Subject: Wrong case correction: start translation, select compsolid, activate value control... X-Git-Tag: V_2.3.1~51 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6e39296196ae2208bec64c011e9429abca5ab037;p=modules%2Fshaper.git Wrong case correction: start translation, select compsolid, activate value control. Result: argument presentation(yellow) is hidden. --- diff --git a/src/PartSet/PartSet_CustomPrs.cpp b/src/PartSet/PartSet_CustomPrs.cpp index 8c268fd1d..604e593c2 100755 --- a/src/PartSet/PartSet_CustomPrs.cpp +++ b/src/PartSet/PartSet_CustomPrs.cpp @@ -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(