From: mpv Date: Tue, 23 May 2017 14:46:09 +0000 (+0300) Subject: Fix for the issue #2170 X-Git-Tag: V_2.7.1.1~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=06b3dacebfb36ac1f2f3dc341e2c2d8e6e8ae36b;p=modules%2Fshaper.git Fix for the issue #2170 --- 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()); } } }