From 17836119ec588be34c9cd2754a41d43c851b0fd0 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 4 Jun 2014 15:09:44 +0400 Subject: [PATCH] It replaces direct names of construction and partset features to the specific kind. --- src/XGUI/XGUI_Workshop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2