Browse Source

make sure tab is not visible in RichTextLabel, closes #5079

Juan Linietsky 9 năm trước cách đây
mục cha
commit
ef2f6a18d2
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      scene/gui/rich_text_label.cpp

+ 2 - 0
scene/gui/rich_text_label.cpp

@@ -374,6 +374,8 @@ if (m_height > line_height) {\
 								int cw=0;
 
 								bool visible = visible_characters<0 || p_char_count<visible_characters;
+								if (c[i]=='\t')
+									visible=false;
 
 								if (selected) {