瀏覽代碼

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

Juan Linietsky 9 年之前
父節點
當前提交
ef2f6a18d2
共有 1 個文件被更改,包括 2 次插入0 次删除
  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) {