Fixed RichTextLabel::add_newline() #12564

This commit is contained in:
Zher Huei Lee 2017-11-02 08:46:28 +08:00
parent 93a3d1714e
commit 6ba94cb924

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