From 31529fa83ef404d3d890b4f121a3445b4a271f69 Mon Sep 17 00:00:00 2001 From: LocalIdentity Date: Tue, 9 Sep 2025 23:13:20 +1000 Subject: [PATCH] Fix Crash on Tree tab No sure what is causing the list to find a nil label but this should fix it --- src/Classes/DropDownControl.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Classes/DropDownControl.lua b/src/Classes/DropDownControl.lua index 3a4bb6e26..008783f3d 100644 --- a/src/Classes/DropDownControl.lua +++ b/src/Classes/DropDownControl.lua @@ -513,7 +513,7 @@ function DropDownClass:CheckDroppedWidth(enable) line = line.label or "" end -- +10 to stop clipping - dWidth = m_max(dWidth, DrawStringWidth(lineHeight, "VAR", line) + 10) + dWidth = m_max(dWidth, DrawStringWidth(lineHeight, "VAR", line or "") + 10) end -- no greater than self.maxDroppedWidth self.droppedWidth = m_min(dWidth + scrollWidth, self.maxDroppedWidth)