From 5f7da5ddc5f488cd5df32193c9ebfb0dd6ea3786 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Fri, 16 Dec 2022 16:28:24 +0300 Subject: [PATCH] Fix label tagged text error reporting --- libs/ui/source/label.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ui/source/label.cpp b/libs/ui/source/label.cpp index e9a30880..ebb1cdae 100644 --- a/libs/ui/source/label.cpp +++ b/libs/ui/source/label.cpp @@ -40,7 +40,7 @@ namespace psemek::ui if (tag == "bold" || tag == "uline" || tag == "strike") { if (attribute) - throw std::runtime_error("tag [" + std::string(tag) + " doesn't support attributes"); + throw std::runtime_error("tag [" + tag + "] doesn't support attributes"); } else if (tag == "color") {