Skip to content

Commit cc34f57

Browse files
committed
Fix crash if a marker group has children but doesn't have any nodes
* This could happen if the option to remove empty groups was enabled, and all the children in a group were removed.
1 parent 490dbea commit cc34f57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

renderdocui/Windows/EventBrowser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ private TreelistView.Node AddDrawcall(TreelistView.Node existing, FetchDrawcall
301301
}
302302
}
303303

304-
if(!found)
304+
if (!found && !drawNode.Nodes.IsEmpty())
305305
drawNode.Tag = drawNode.Nodes.LastNode.Tag;
306306
}
307307

0 commit comments

Comments
 (0)