Fix BBCode tables overlap with bottom text

New row height was added only if all the column was full.

(cherry picked from commit 25af026d9e)
This commit is contained in:
jmb462 2021-03-16 10:08:31 +01:00 committed by Rémi Verschelde
parent 7696f88544
commit 843eb80039
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -822,7 +822,8 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int &
row_height = MAX(yofs, row_height);
offset.x += table->columns[column].width + hseparation;
if (column == table->columns.size() - 1) {
// Add row height after last column of the row or last cell of the table.
if (column == table->columns.size() - 1 || E->next() == NULL) {
offset.y += row_height + vseparation;
offset.x = hseparation;