Browse Source

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

Juan Linietsky 9 years ago
parent
commit
ef2f6a18d2
1 changed files with 2 additions and 0 deletions
  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) {