From ff6d7db1ec0fcdbd73a2e0fa4a32d831fea7366c Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 5 Feb 2019 16:29:15 +0300 Subject: [PATCH] Fix for the issue #2851 : cloison07 dump produces an error --- src/Model/Model_Document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index 2fbfac449..2cbfce82c 100755 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -1516,7 +1516,7 @@ void Model_Document::changeNamingName(const std::string theOldName, Handle(TDataStd_Name) aSubName = Handle(TDataStd_Name)::DownCast(aChild.Value()); std::string aName = TCollection_AsciiString(aSubName->Get()).ToCString(); if (aName.find(theOldName) == 0) { // started from parent name - std::string aNewSubName = theNewName + aName.substr(theNewName.size()); + std::string aNewSubName = theNewName + aName.substr(theOldName.size()); changeNamingName(aName, aNewSubName, aSubName->Label()); aSubName->Set(aNewSubName.c_str()); } -- 2.39.2