From: nds Date: Wed, 4 Jun 2014 11:09:44 +0000 (+0400) Subject: It replaces direct names of construction and partset features to the specific kind. X-Git-Tag: V_0.4.4~320 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=17836119ec588be34c9cd2754a41d43c851b0fd0;p=modules%2Fshaper.git It replaces direct names of construction and partset features to the specific kind. --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 4847cd62d..8dec5d900 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -809,7 +809,7 @@ void XGUI_Workshop::deleteFeatures(QFeatureList theList) PluginManagerPtr aMgr = ModelAPI_PluginManager::get(); aMgr->rootDocument()->startOperation(); foreach (FeaturePtr aFeature, theList) { - if (aFeature->getKind() == PARTSET_PART_KIND) { + if (aFeature->getKind() == "Part") { DocumentPtr aDoc; if (!XGUI_Tools::isModelObject(aFeature)) { aDoc = aFeature->data()->docRef("PartDocument")->value();