fix iterator error

This commit is contained in:
Twan van Laarhoven
2020-04-10 14:46:27 +02:00
parent 1718198d86
commit 914a4ecceb
+1 -3
View File
@@ -137,9 +137,7 @@ String capitalize(const String& s) {
after_space = true;
} else if (after_space) {
after_space = false;
// See http://trac.wxwidgets.org/ticket/12594
//if (it != s.begin() &&
if (s.begin() != it &&
if (it != result.begin() &&
(is_substr(result,it,_("is ")) || is_substr(result,it,_("the ")) ||
is_substr(result,it,_("in ")) || is_substr(result,it,_("of ")) ||
is_substr(result,it,_("to ")) || is_substr(result,it,_("at ")) ||