Skip to content

Commit a8bf96f

Browse files
LocalIdentityLocalIdentity
andauthored
Fix Crash on Tree tab (#1336)
No sure what is causing the list to find a nil label but this should fix it Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 8bb4d24 commit a8bf96f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Classes/DropDownControl.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ function DropDownClass:CheckDroppedWidth(enable)
513513
line = line.label or ""
514514
end
515515
-- +10 to stop clipping
516-
dWidth = m_max(dWidth, DrawStringWidth(lineHeight, "VAR", line) + 10)
516+
dWidth = m_max(dWidth, DrawStringWidth(lineHeight, "VAR", line or "") + 10)
517517
end
518518
-- no greater than self.maxDroppedWidth
519519
self.droppedWidth = m_min(dWidth + scrollWidth, self.maxDroppedWidth)

0 commit comments

Comments
 (0)