From b8dd5a956c49e6e3dc09194ff7b7dfb12eaf8996 Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 14 Dec 2017 14:05:16 +0300 Subject: [PATCH] Make names work of result-shapes even they are in "Modified" state. --- src/Model/Model_Document.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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(); + } + } } } } -- 2.30.2