]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #2170
authormpv <mpv@opencascade.com>
Tue, 23 May 2017 14:46:09 +0000 (17:46 +0300)
committermpv <mpv@opencascade.com>
Tue, 23 May 2017 14:46:29 +0000 (17:46 +0300)
src/Model/Model_ResultConstruction.cpp

index bd101b6025c2f8965e8d17877dd3ef6ae636b541..7637544def3e6ef57cff3cc579d74469803b4f67 100644 (file)
@@ -397,13 +397,13 @@ int Model_ResultConstruction::select(const std::shared_ptr<GeomAPI_Shape>& theSu
                   TDF_Label aSubLab = aLab.FindChild(aTagIndex);
                   std::string aName = "Vertex-"
                       + Model_SelectionNaming::shortName(aConstr, aDelta / kSTART_VERTEX_DELTA);
-                  TNaming_Builder aBuilder(aLab);
+                  TNaming_Builder aBuilder(aSubLab);
                   if (isSelectionMode)
                     aBuilder.Select(aV, aV);
                   else
                     aBuilder.Generated(aV);
-                  aMyDoc->addNamingName(aLab, aName.c_str());
-                  TDataStd_Name::Set(aLab, aName.c_str());
+                  aMyDoc->addNamingName(aSubLab, aName.c_str());
+                  TDataStd_Name::Set(aSubLab, aName.c_str());
                 }
               }
             }