浏览代码

Revert "Fix text warp in color blocks with CJK"

This reverts commit b93fce1c18a58e752c07a634ed11aa8ec199601d.

That commit introduced regressions for non-CJK languages are discussed
in #8952. Fixes #9078.
Rémi Verschelde 8 年之前
父节点
当前提交
7c3b3e0a80
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/gui/rich_text_label.cpp

+ 1 - 1
scene/gui/rich_text_label.cpp

@@ -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 + wofs > p_width) {
+						if (end > 0 && w + cw + begin > p_width) {
 							break; //don't allow lines longer than assigned width
 						}