fixed ChangeName function for common
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
#define VERSION_SPF "2454"
|
||||
#define VERSION_SPF "2455"
|
||||
|
||||
Reference in New Issue
Block a user