From 0ae1ec462d07b6613311b31687a08ec2be63c751 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 17 Mar 2024 12:06:16 +0100 Subject: [PATCH] Fixes #13011: Failure of test additionOperators when built with Qt6 --- src/App/MappedName.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/MappedName.h b/src/App/MappedName.h index 355533e1bd..93c79682b6 100644 --- a/src/App/MappedName.h +++ b/src/App/MappedName.h @@ -332,7 +332,7 @@ public: MappedName& operator+=(const char* other) { if (other && (other[0] != 0)) { - this->postfix.append(other, -1); + this->postfix.append(other, static_cast(qstrlen(other))); } return *this; }