浏览代码

Merge pull request #24430 from hpvb/fix-24424

Don't accidentally convert string content to char
Hein-Pieter van Braam 6 年之前
父节点
当前提交
0cff752be1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/gui/label.cpp

+ 1 - 1
scene/gui/label.cpp

@@ -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);