From 18f165b494b7a4b314c0885d596131bcd2cf9287 Mon Sep 17 00:00:00 2001 From: Franklin Sobrinho Date: Sun, 17 Jul 2016 13:21:44 -0300 Subject: Fix empty reference pages after restarting Godot --- scene/gui/rich_text_label.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scene/gui') 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(); -- cgit v1.2.3