From 6e39296196ae2208bec64c011e9429abca5ab037 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 26 May 2016 14:06:36 +0300 Subject: [PATCH] Wrong case correction: start translation, select compsolid, activate value control. Result: argument presentation(yellow) is hidden. --- src/PartSet/PartSet_CustomPrs.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) 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( -- 2.39.2