mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Improve the capitalization algorithm
This commit is contained in:
parent
d4b10b091c
commit
90395a32dd
@ -50,7 +50,7 @@ static QString capitalized(const QString &str)
|
||||
{
|
||||
QString ret(str);
|
||||
for (int i = 0; i < str.size(); i++)
|
||||
if (i && !str.at(i-1).isSpace())
|
||||
if (i && !(str.at(i-1).isSpace() || str.at(i-1) == '('))
|
||||
ret[i] = str.at(i).toLower();
|
||||
else
|
||||
ret[i] = str.at(i);
|
||||
|
Loading…
Reference in New Issue
Block a user