From fa2be586ccc079516a44e9f494cdd1e336ec3254 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 19 Sep 2016 14:34:16 +0200 Subject: [PATCH] Escape & in the text of drawcall nodes in event browser * Otherwise it becomes a shortcut sequence for some bizarre reason --- renderdocui/Windows/EventBrowser.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdocui/Windows/EventBrowser.cs b/renderdocui/Windows/EventBrowser.cs index 750d54cdb..5b28a8778 100644 --- a/renderdocui/Windows/EventBrowser.cs +++ b/renderdocui/Windows/EventBrowser.cs @@ -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)