mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
Improve capitalization algorithm
This commit is contained in:
parent
937c71f16c
commit
6bc8be58fc
@ -33,7 +33,8 @@ static QString capitalized(const QString &str)
|
||||
QChar last(str.at(i-1));
|
||||
QChar c(str.at(i));
|
||||
|
||||
ret[i] = (last.isSpace() || last == '(') ? c : c.toLower();
|
||||
ret[i] = (last.isSpace() || last == '(' || last == '"')
|
||||
? c : c.toLower();
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user