mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-26 19:19:16 +02:00
Improve capitalization algorithm
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user