From ae39a9a55c803d323449d9f57cada68079d10dd3 Mon Sep 17 00:00:00 2001 From: Dylan Nicholson Date: Tue, 29 Jun 2021 12:29:36 +0200 Subject: [PATCH] fix #321924 allow sub and sup tags in instrument names Backport of #8254 --- libmscore/textbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmscore/textbase.cpp b/libmscore/textbase.cpp index 31daa83254d1d..5e7aecf227d8a 100644 --- a/libmscore/textbase.cpp +++ b/libmscore/textbase.cpp @@ -2671,7 +2671,7 @@ bool TextBase::validateText(QString& s) d.append("&"); } else if (c == '<') { - const char* ok[] { "b>", "/b>", "i>", "/i>", "u>", "/u", "font ", "/font>", "sym>", "/sym>" }; + const char* ok[] { "b>", "/b>", "i>", "/i>", "u>", "/u", "font ", "/font>", "sym>", "/sym>", "sub>", "/sub>", "sup>", "/sup>" }; QString t = s.mid(i+1); bool found = false; for (auto k : ok) {