From f96cf18f82e49fcad0d24c1f6ef5ceb7f2cc92ad Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 24 Jul 2017 15:00:37 +0300 Subject: [PATCH] Minor updates. --- src/FeaturesPlugin/FeaturesPlugin_Pipe.cpp | 3 --- src/Model/Model_Document.cpp | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/FeaturesPlugin/FeaturesPlugin_Pipe.cpp b/src/FeaturesPlugin/FeaturesPlugin_Pipe.cpp index a386d8dc5..ca72a5aeb 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Pipe.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Pipe.cpp @@ -342,9 +342,6 @@ void FeaturesPlugin_Pipe::storeResult(const std::shared_ptr theBa aGenTag++, aGenName + "Face", *aMapOfSubShapes.get()); } - aResultBody->loadAndOrientGeneratedShapes(&thePipeAlgo, theBaseShape, aShapeTypeToExplode, - aGenTag++, aGenName, *aMapOfSubShapes.get()); - // Store from shapes. int aFromTag = aGenTag; storeShapes(aResultBody, aBaseShapeType, aMapOfSubShapes, diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index c6d7dda35..03959c2ff 100755 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -1308,7 +1308,7 @@ TDF_Label Model_Document::findNamingName(std::string theName) // If not found child label with the exact sub-name, then try to find compound with // such sub-name without suffix. Standard_Integer aSuffixPos = aSubName.SearchFromEnd('_'); - if (aSuffixPos != -1) { + if (aSuffixPos != -1 && aSuffixPos != aSubName.Length()) { TCollection_ExtendedString anIndexStr = aSubName.Split(aSuffixPos); aSubName.Remove(aSuffixPos); aNamesIter.Initialize(aFind->second, TDataStd_Name::GetID(), Standard_True); -- 2.39.2