diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-11 20:04:00 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-11 20:04:00 -0300 |
commit | ef2f6a18d215df77ce5c00b19b9429ddb1613c8c (patch) | |
tree | ea70026bcc892ac7b6d5a582059b795e52076717 /scene/gui | |
parent | f860915ae0a1f09ff554a0b37777a57fc6e29ece (diff) |
make sure tab is not visible in RichTextLabel, closes #5079
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/rich_text_label.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index 98bc0b9434..80949b4eb4 100644 --- a/scene/gui/rich_text_label.cpp +++ b/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) { |