From: vsv Date: Sat, 26 Dec 2015 13:08:55 +0000 (+0300) Subject: Issue #1195: Fix of Show constraint toggle. X-Git-Tag: V_2.1.0~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4088275a0a2e226354c023220596387f7fbaa6f7;p=modules%2Fshaper.git Issue #1195: Fix of Show constraint toggle. --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index fb633f631..93a810750 100755 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -638,9 +638,11 @@ void PartSet_Module::onFeatureTriggered() void PartSet_Module::launchOperation(const QString& theCmdId) { + if (myWorkshop->currentOperation() && + myWorkshop->currentOperation()->id().toStdString() == SketchPlugin_Sketch::ID()) + myHasConstraintShown = mySketchMgr->isConstraintsShown(); if (PartSet_SketcherMgr::constraintsIdList().contains(theCmdId)) { // Show constraints if a constraint was anOperation - myHasConstraintShown = mySketchMgr->isConstraintsShown(); mySketchMgr->onShowConstraintsToggle(true); } ModuleBase_IModule::launchOperation(theCmdId);