Merge pull request #12575 from leezh/richtext_newline_fix

Fixed RichTextLabel::add_newline() Fixes #12564
This commit is contained in:
Rémi Verschelde 2017-11-02 07:56:41 +01:00 committed by GitHub
commit 4b477263a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {