Merge pull request #14633 from poke1024/fix-richtextlabel-crash

Fix crash (and bug) in RichTextLabel
This commit is contained in:
Rémi Verschelde 2017-12-13 22:03:52 +01:00 committed by GitHub
commit 8771329f55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -453,7 +453,7 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int &
for (int i = 0; i < frame->lines.size(); i++) {
_process_line(frame, Point2(), ly, p_width, i, PROCESS_CACHE, cfont, Color());
table->columns[column].min_width = MAX(table->columns[i].min_width, frame->lines[i].minimum_width);
table->columns[column].min_width = MAX(table->columns[column].min_width, frame->lines[i].minimum_width);
}
idx++;
}