[RTL] Fix clearing text with set_text("").
This commit is contained in:
parent
0c45ace151
commit
a2b8b51097
1 changed files with 5 additions and 1 deletions
|
|
@ -5828,7 +5828,11 @@ void RichTextLabel::set_text(const String &p_bbcode) {
|
|||
stack_externally_modified = false;
|
||||
|
||||
text = p_bbcode;
|
||||
_apply_translation();
|
||||
if (text.is_empty()) {
|
||||
clear();
|
||||
} else {
|
||||
_apply_translation();
|
||||
}
|
||||
}
|
||||
|
||||
void RichTextLabel::_apply_translation() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue