]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Minor updates.
authormpv <mpv@opencascade.com>
Mon, 24 Jul 2017 12:00:37 +0000 (15:00 +0300)
committermpv <mpv@opencascade.com>
Mon, 24 Jul 2017 12:00:54 +0000 (15:00 +0300)
src/FeaturesPlugin/FeaturesPlugin_Pipe.cpp
src/Model/Model_Document.cpp

index a386d8dc56f53fe16c7bc9c8e6388eeb7866ab45..ca72a5aeb951bc15b49bf129cd14b79e5e0e3508 100644 (file)
@@ -342,9 +342,6 @@ void FeaturesPlugin_Pipe::storeResult(const std::shared_ptr<GeomAPI_Shape> 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,
index c6d7dda35baa7ce1647ba3a60d10e83fa8c74880..03959c2ff7ea4eecc838ee652f242609828701e4 100755 (executable)
@@ -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);