mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Add null check in TreeListView - fixes crash hitting pagedown if empty
This commit is contained in:
@@ -1003,6 +1003,8 @@ namespace TreelistView
|
||||
}
|
||||
public static Node FindNodesBottomLeaf(Node node, bool mustBeVisible)
|
||||
{
|
||||
if (node == null)
|
||||
return node;
|
||||
if (mustBeVisible && node.Expanded == false)
|
||||
return node;
|
||||
if (node.HasChildren == false || node.Nodes.LastNode == null)
|
||||
|
||||
Reference in New Issue
Block a user