1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Properly de-capitalize strings with "scharfes S"

This commit is contained in:
Martin Tůma 2019-07-28 10:31:03 +02:00
parent a11b926a98
commit 1297db26f6

View File

@ -35,7 +35,8 @@ static QString capitalize(const QString &str)
if (str.isEmpty())
return str;
for (int i = 0; i < str.size(); i++)
if (str.at(i).isLetter() && !str.at(i).isUpper())
if (str.at(i).isLetter() && !(str.at(i).isUpper()
|| str.at(i) == QChar(0x00DF)))
return str;
QString ret(str);