From 511ba894ff0013b9d9340cabdd953124d1cd11d5 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 17 Apr 2021 15:10:26 +0200 Subject: [PATCH] Fix toqstr(chart_type) with Qt6 (#12252) --- src/support/qstring_helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support/qstring_helpers.cpp b/src/support/qstring_helpers.cpp index 19cac062fb..bb800f3c67 100644 --- a/src/support/qstring_helpers.cpp +++ b/src/support/qstring_helpers.cpp @@ -57,7 +57,7 @@ QString toqstr(docstring const & ucs4) QString toqstr(char_type ucs4) { #if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) - return QString::fromStdU32String(std::u32string(ucs4, 1)); + return QString::fromStdU32String(std::u32string(1, ucs4)); #else union { char_type c; uint i; } u = { ucs4 }; return QString::fromUcs4(&u.i, 1);