Przeglądaj źródła

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

Juan Linietsky 9 lat temu
rodzic
commit
ef2f6a18d2
1 zmienionych plików z 2 dodań i 0 usunięć
  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) {