Fix text warp in color blocks with CJK

(cherry picked from commit cd778e00dc)
This commit is contained in:
Geequlim 2017-05-27 14:07:18 +08:00 committed by Rémi Verschelde
parent cba62864c8
commit b93fce1c18
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ void RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int
cw = tab_size * font->get_char_size(' ').width;
}
if (end > 0 && w + cw + begin > p_width) {
if (end > 0 && w + cw + wofs > p_width) {
break; //don't allow lines longer than assigned width
}