From: mpv Date: Tue, 5 Feb 2019 13:29:15 +0000 (+0300) Subject: Fix for the issue #2851 : cloison07 dump produces an error X-Git-Tag: V9_3_0a1~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4ede56e66e41f6beec09dbc36e79b1cca223a460;p=modules%2Fshaper.git Fix for the issue #2851 : cloison07 dump produces an error --- 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()); }