Skip to content

Commit ae9a0ad

Browse files
committed
qt/tonalutils: Use UCSUR codepoints for Tonal output
1 parent e165451 commit ae9a0ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/qt/tonalutils.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <QRegExpValidator>
1111
#include <QString>
1212

13-
static const QList<QChar> tonal_digits{0xe9df, 0xe9de, 0xe9dd, 0xe9dc, 0xe9db, 0xe9da, 0xe9d9, '8', '7', '6', '5', '4', '3', '2', '1', '0'};
13+
static const QList<QChar> tonal_digits{0xe8ef, 0xe8ee, 0xe8ed, 0xe8ec, 0xe8eb, 0xe8ea, 0xe8e9, '8', '7', '6', '5', '4', '3', '2', '1', '0'};
1414

1515
namespace {
1616

@@ -52,13 +52,13 @@ void TonalUtils::ConvertFromHex(QString&str)
5252
{
5353
ushort c = str[i].unicode();
5454
if (c == '9')
55-
str[i] = 0xe9d9;
55+
str[i] = 0xe8e9;
5656
else
5757
if (c >= 'A' && c <= 'F')
58-
str[i] = c + 0xe999;
58+
str[i] = c + (0xe8ea - 'A');
5959
else
6060
if (c >= 'a' && c <= 'f')
61-
str[i] = c + 0xe979;
61+
str[i] = c + (0xe8ea - 'a');
6262
}
6363
}
6464

0 commit comments

Comments
 (0)