From 6bc8be58fc52bef823f0af66c2276eb48366c4c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Fri, 13 Sep 2024 22:24:58 +0200 Subject: [PATCH] Improve capitalization algorithm --- src/map/IMG/lblfile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map/IMG/lblfile.cpp b/src/map/IMG/lblfile.cpp index 127f6e16..6f39cc70 100644 --- a/src/map/IMG/lblfile.cpp +++ b/src/map/IMG/lblfile.cpp @@ -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;