From 843eb80039435b79e6d2b3103a49fab96cba6d77 Mon Sep 17 00:00:00 2001 From: jmb462 Date: Tue, 16 Mar 2021 10:08:31 +0100 Subject: [PATCH] Fix BBCode tables overlap with bottom text New row height was added only if all the column was full. (cherry picked from commit 25af026d9e2037ae9953a7868ed2f4c906925675) --- scene/gui/rich_text_label.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index dd275e346c8..c2b57daa6f9 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -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;