Fixed RichTextLabel::add_newline() #12564
This commit is contained in:
parent
93a3d1714e
commit
6ba94cb924
1 changed files with 2 additions and 1 deletions
|
@ -1195,8 +1195,9 @@ void RichTextLabel::add_newline() {
|
||||||
return;
|
return;
|
||||||
ItemNewline *item = memnew(ItemNewline);
|
ItemNewline *item = memnew(ItemNewline);
|
||||||
item->line = current_frame->lines.size();
|
item->line = current_frame->lines.size();
|
||||||
current_frame->lines.resize(current_frame->lines.size() + 1);
|
|
||||||
_add_item(item, false);
|
_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) {
|
bool RichTextLabel::remove_line(const int p_line) {
|
||||||
|
|
Loading…
Reference in a new issue