Escape & in the text of drawcall nodes in event browser

* Otherwise it becomes a shortcut sequence for some bizarre reason
This commit is contained in:
baldurk
2016-09-19 14:34:16 +02:00
parent 39b0804cdb
commit fa2be586cc
+2 -2
View File
@@ -233,12 +233,12 @@ namespace renderdocui.Windows
private TreelistView.Node MakeNode(UInt32 minEID, UInt32 maxEID, UInt32 minDraw, UInt32 maxDraw, string text, double duration)
{
return new TreelistView.Node(new object[] { String.Format("{0}-{1}", minEID, maxEID), String.Format("{0}-{1}", minDraw, maxDraw), text, duration });
return new TreelistView.Node(new object[] { String.Format("{0}-{1}", minEID, maxEID), String.Format("{0}-{1}", minDraw, maxDraw), text.Replace("&", "&&"), duration });
}
private TreelistView.Node MakeNode(UInt32 EID, UInt32 draw, string text, double duration)
{
return new TreelistView.Node(new object[] { EID, draw, text, duration });
return new TreelistView.Node(new object[] { EID, draw, text.Replace("&", "&&"), duration });
}
private uint GetEndEventID(FetchDrawcall drawcall)