From: mpv Date: Thu, 14 Dec 2017 11:05:16 +0000 (+0300) Subject: Make names work of result-shapes even they are in "Modified" state. X-Git-Tag: V_2.10.0RC~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b8dd5a956c49e6e3dc09194ff7b7dfb12eaf8996;p=modules%2Fshaper.git Make names work of result-shapes even they are in "Modified" state. --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index c422dcf52..f37533c07 100755 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -1431,6 +1431,13 @@ TDF_Label Model_Document::findNamingName(std::string theName, ResultPtr theConte return aName->Label(); } } + // check also "this" label + Handle(TDataStd_Name) aName; + if (aLabIter->FindAttribute(TDataStd_Name::GetID(), aName)) { + if (aName->Get() == aSubName) { + return aName->Label(); + } + } } } }