treeview: fix crash on tooltip.x been nil
This commit is contained in:
parent
30de42f4ab
commit
a7fc7b4408
|
@ -422,7 +422,7 @@ function TreeView:draw()
|
|||
end
|
||||
|
||||
self:draw_scrollbar()
|
||||
if self.hovered_item and self.tooltip.alpha > 0 then
|
||||
if self.hovered_item and self.tooltip.alpha > 0 and self.draw_tooltip.x then
|
||||
core.root_view:defer_draw(self.draw_tooltip, self)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue