From 685e20bcec14e1cc3f859a6b7531e4bce8b8c2b7 Mon Sep 17 00:00:00 2001 From: bombom_by Date: Fri, 6 Sep 2019 00:26:43 +0100 Subject: [PATCH] Fixing a tiny bug with thread depth calculation --- gui/ThreadView/EventsThreadRow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/ThreadView/EventsThreadRow.cs b/gui/ThreadView/EventsThreadRow.cs index 5e88ecbe..fe8718ef 100644 --- a/gui/ThreadView/EventsThreadRow.cs +++ b/gui/ThreadView/EventsThreadRow.cs @@ -108,7 +108,7 @@ private void UpdateThreadsDepth() foreach (EventFrame frame in EventData.Events) { - depth = Math.Max(GetTree(frame).Depth, MaxDepth); + depth = Math.Max(GetTree(frame).Depth, depth); } MaxThreadsDepth = depth;