Merge pull request #24430 from hpvb/fix-24424

Don't accidentally convert string content to char
This commit is contained in:
Hein-Pieter van Braam 2018-12-17 22:46:49 +01:00 committed by GitHub
commit 0cff752be1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -395,7 +395,7 @@ void Label::regenerate_word_cache() {
for (int i = 0; i <= xl_text.length(); i++) {
CharType current = i < xl_text.length() ? xl_text[i] : ' '; //always a space at the end, so the algo works
CharType current = i < xl_text.length() ? xl_text[i] : L' '; //always a space at the end, so the algo works
if (uppercase)
current = String::char_uppercase(current);