EgtMachKernel :

- sistemazioni sulle NewName.
This commit is contained in:
Dario Sassi
2016-10-06 18:46:36 +00:00
parent 7e656dab01
commit 3b4f83be19
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -80,6 +80,8 @@ MachMgr::GetMachGroupNewName( string& sName) const
// verifico che il nome sia unico
int nCount = 0 ;
string sOrigName = sName ;
if ( sOrigName.rfind( "_1") == sOrigName.length() - 2)
sOrigName.erase( sOrigName.length() - 2) ;
while ( GetMachGroupId( sName) != GDB_ID_NULL) {
++ nCount ;
sName = sOrigName + "_" + ToString( nCount) ;