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.
This commit is contained in:
baldurk
2015-03-26 17:54:26 +00:00
parent 490dbea556
commit cc34f5749a
+1 -1
View File
@@ -301,7 +301,7 @@ namespace renderdocui.Windows
}
}
if(!found)
if (!found && !drawNode.Nodes.IsEmpty())
drawNode.Tag = drawNode.Nodes.LastNode.Tag;
}