From 06b3dacebfb36ac1f2f3dc341e2c2d8e6e8ae36b Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 23 May 2017 17:46:09 +0300 Subject: [PATCH] Fix for the issue #2170 --- src/Model/Model_ResultConstruction.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Model/Model_ResultConstruction.cpp b/src/Model/Model_ResultConstruction.cpp index bd101b602..7637544de 100644 --- a/src/Model/Model_ResultConstruction.cpp +++ b/src/Model/Model_ResultConstruction.cpp @@ -397,13 +397,13 @@ int Model_ResultConstruction::select(const std::shared_ptr& 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()); } } } -- 2.39.2