From a41f1c67e5d45e08f38d55af2d0680c2b5fb2446 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Wed, 2 Dec 2020 23:17:51 +0200 Subject: [PATCH] [Complex Text Layouts] Fix missing ItemList item text buffer init in `add_icon_item`. --- scene/gui/item_list.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index 53fe5712c73..5be7804ac13 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -78,6 +78,7 @@ void ItemList::add_icon_item(const Ref &p_item, bool p_selectable) { item.icon_region = Rect2i(); item.icon_modulate = Color(1, 1, 1, 1); //item.text=p_item; + item.text_buf.instance(); item.selectable = p_selectable; item.selected = false; item.disabled = false;