Salome HOME
It replaces direct names of construction and partset features to the specific kind.
authornds <natalia.donis@opencascade.com>
Wed, 4 Jun 2014 11:09:44 +0000 (15:09 +0400)
committernds <natalia.donis@opencascade.com>
Wed, 4 Jun 2014 11:09:44 +0000 (15:09 +0400)
src/XGUI/XGUI_Workshop.cpp

index 4847cd62d08bf2f2c189bc49198e4e643c9918f9..8dec5d9007195e321306ffb9165ef5840e4ab731 100644 (file)
@@ -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();