summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-07-17 19:06:03 +0200
committerGitHub <noreply@github.com>2016-07-17 19:06:03 +0200
commit7b28976af5c4c1bb7bf49028d7e9fde5465d7d2e (patch)
tree449cbe9dde1a6fbc069d9fdbbdf9dce2c9b4ee09 /scene/gui
parent5218f35b7fe8c6655c6b304272cefdf9ea4d82e6 (diff)
parent18f165b494b7a4b314c0885d596131bcd2cf9287 (diff)
Merge pull request #5755 from TheHX/issue-5716
Fix empty reference pages after restarting Godot
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/rich_text_label.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp
index b4fa463cde..73a3cda5f3 100644
--- a/scene/gui/rich_text_label.cpp
+++ b/scene/gui/rich_text_label.cpp
@@ -662,7 +662,9 @@ void RichTextLabel::_notification(int p_what) {
} break;
case NOTIFICATION_ENTER_TREE: {
- set_bbcode(bbcode);
+ if (bbcode != "")
+ set_bbcode(bbcode);
+
main->first_invalid_line=0; //invalidate ALL
update();