X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSetPlugin%2FPartSetPlugin_Remove.cpp;h=0e09f3a607b7e440cbfe3a49fbfffd25cdbf440a;hb=458411a82fcc9e0146ce49a41c88a47b26240181;hp=5e99cb1f9a8734f5c318133546e6f65e740f5e46;hpb=6d67df3511c8cc3518911419aea31c15bafd2a8d;p=modules%2Fshaper.git diff --git a/src/PartSetPlugin/PartSetPlugin_Remove.cpp b/src/PartSetPlugin/PartSetPlugin_Remove.cpp index 5e99cb1f9..0e09f3a60 100644 --- a/src/PartSetPlugin/PartSetPlugin_Remove.cpp +++ b/src/PartSetPlugin/PartSetPlugin_Remove.cpp @@ -15,8 +15,8 @@ void PartSetPlugin_Remove::execute() boost::shared_ptr aCurrent; boost::shared_ptr a; for(int a = aRoot->size(getGroup()) - 1; a >= 0; a--) { - boost::shared_ptr aFeature = aRoot->feature(getGroup(), a, true); - if (aFeature->getKind() == "Part") { + FeaturePtr aFeature = aRoot->feature(getGroup(), a, true); + if (aFeature->getKind() == PARTSET_PART_KIND) { boost::shared_ptr aPart = boost::static_pointer_cast(aFeature); if (aPart->data()->docRef(PART_ATTR_DOC_REF)->value() == aPManager->currentDocument()) {