From: nds Date: Wed, 4 Jun 2014 11:10:41 +0000 (+0400) Subject: It replaces direct names of construction and partset features to the specific kind. X-Git-Tag: V_0.4.4~319 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dab5e73feae6a8535e85a1db60456ff36571b6c8;p=modules%2Fshaper.git It replaces direct names of construction and partset features to the specific kind. --- diff --git a/src/XGUI/XGUI_ContextMenuMgr.cpp b/src/XGUI/XGUI_ContextMenuMgr.cpp index 86a5d03e8..32c961026 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.cpp +++ b/src/XGUI/XGUI_ContextMenuMgr.cpp @@ -96,7 +96,7 @@ QMenu* XGUI_ContextMenuMgr::objectBrowserMenu() const FeaturePtr aFeature = aFeatures.first(); //Process Feature if (aFeature) { - if (aFeature->getKind() == PARTSET_PART_KIND) { + if (aFeature->getKind() == "Part") { ObjectPtr aObject = boost::dynamic_pointer_cast(aFeature); DocumentPtr aFeaDoc = aObject->featureRef()->data()->docRef("PartDocument")->value(); if (aMgr->currentDocument() == aFeaDoc) diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 8dec5d900..dfe77c6f8 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -228,7 +228,7 @@ void XGUI_Workshop::processEvent(const Events_Message* theMessage) bool aHasPart = false; for (aIt = aFeatures.begin(); aIt != aFeatures.end(); ++aIt) { FeaturePtr aFeature = (*aIt); - if (aFeature->getKind() == PARTSET_PART_KIND) { + if (aFeature->getKind() == "Part") { aHasPart = true; break; }