Merge pull request #70566 from cg9999/richtextlabel_fix
Fix crash in RichTextLabel table parsing
This commit is contained in:
commit
312703ca1f
@ -3336,6 +3336,7 @@ void RichTextLabel::push_table(int p_columns, InlineAlignment p_alignment, int p
|
|||||||
_stop_thread();
|
_stop_thread();
|
||||||
MutexLock data_lock(data_mutex);
|
MutexLock data_lock(data_mutex);
|
||||||
|
|
||||||
|
ERR_FAIL_COND(current->type == ITEM_TABLE);
|
||||||
ERR_FAIL_COND(p_columns < 1);
|
ERR_FAIL_COND(p_columns < 1);
|
||||||
ItemTable *item = memnew(ItemTable);
|
ItemTable *item = memnew(ItemTable);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user