fixed ChangeName function for common

This commit is contained in:
ALEXks
2026-02-03 09:26:06 +03:00
parent b90d200fad
commit 5a1377e7ea
2 changed files with 17 additions and 2 deletions

View File

@@ -336,9 +336,24 @@ namespace Distribution
if (pos != STRING::npos)
{
name.erase(pos, shortName.size());
shortName = newName;
name += newName;
}
else if (locationPos.first == l_COMMON) // name of array in common may be different
{
pos = name.rfind("_");
if (pos != STRING::npos)
{
name.erase(pos + 1, shortName.size());
name += newName;
}
else
{
#if __SPF
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
#endif
}
}
shortName = newName;
GenUniqKey();
}

View File

@@ -1,3 +1,3 @@
#pragma once
#define VERSION_SPF "2454"
#define VERSION_SPF "2455"