summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-06-11 20:04:00 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-06-11 20:04:00 -0300
commitef2f6a18d215df77ce5c00b19b9429ddb1613c8c (patch)
treeea70026bcc892ac7b6d5a582059b795e52076717 /scene/gui
parentf860915ae0a1f09ff554a0b37777a57fc6e29ece (diff)
make sure tab is not visible in RichTextLabel, closes #5079
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/rich_text_label.cpp2
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) {