From 5a9a5fdd47bc8f31f81d9b41b612e1ef4d9d78b4 Mon Sep 17 00:00:00 2001 From: Sergej Geringer Date: Mon, 29 Aug 2022 17:34:33 +0200 Subject: [PATCH] AbstractNamedObject: FullName() respects "::" module name prefix --- core/src/AbstractNamedObject.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/AbstractNamedObject.cpp b/core/src/AbstractNamedObject.cpp index 721d5326c6..2698cccd57 100644 --- a/core/src/AbstractNamedObject.cpp +++ b/core/src/AbstractNamedObject.cpp @@ -85,7 +85,8 @@ vislib::StringA AbstractNamedObject::FullName(void) const { break; } name.Prepend(ano->Name()); - name.Prepend("::"); + if (!name.StartsWith("::", false)) + name.Prepend("::"); ano = ano->Parent(); } return name;