Merge pull request #12575 from leezh/richtext_newline_fix
Fixed RichTextLabel::add_newline() Fixes #12564
This commit is contained in:
commit
4b477263a7
1 changed files with 2 additions and 1 deletions
|
@ -1195,8 +1195,9 @@ void RichTextLabel::add_newline() {
|
|||
return;
|
||||
ItemNewline *item = memnew(ItemNewline);
|
||||
item->line = current_frame->lines.size();
|
||||
current_frame->lines.resize(current_frame->lines.size() + 1);
|
||||
_add_item(item, false);
|
||||
current_frame->lines.resize(current_frame->lines.size() + 1);
|
||||
_invalidate_current_line(current_frame);
|
||||
}
|
||||
|
||||
bool RichTextLabel::remove_line(const int p_line) {
|
||||
|
|
Loading…
Reference in a new issue