EgtMachKernel :
- sistemazioni sulle NewName.
This commit is contained in:
@@ -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) ;
|
||||
|
||||
Reference in New Issue
Block a user