From 5a1377e7eaafbf98f3ab1dad6cd915c76606200a Mon Sep 17 00:00:00 2001 From: ALEXks Date: Tue, 3 Feb 2026 09:26:06 +0300 Subject: [PATCH] fixed ChangeName function for common --- src/Distribution/Array.h | 17 ++++++++++++++++- src/Utils/version.h | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/Distribution/Array.h b/src/Distribution/Array.h index d8aebf5..9ac4f44 100644 --- a/src/Distribution/Array.h +++ b/src/Distribution/Array.h @@ -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(); } diff --git a/src/Utils/version.h b/src/Utils/version.h index c10a41a..90774df 100644 --- a/src/Utils/version.h +++ b/src/Utils/version.h @@ -1,3 +1,3 @@ #pragma once -#define VERSION_SPF "2454" +#define VERSION_SPF "2455"