From bbe54f47ca50f66967e18389f7843298df57886b Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Thu, 24 May 2018 18:37:56 -0400 Subject: [PATCH] a null check would have fixed crash at 902e1ab0a1 when recording... ... a mono channel into the left side of a stereo track; crash was in drawing; other code now prevents such recording, but that prevention might be revised again. --- src/TrackPanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TrackPanel.cpp b/src/TrackPanel.cpp index 979efff8a..100c2414e 100644 --- a/src/TrackPanel.cpp +++ b/src/TrackPanel.cpp @@ -1866,7 +1866,7 @@ void TrackPanel::DrawEverythingElse(TrackPanelDrawingContext &context, bool skipBorder = false; Track *l = t->GetLink(); - if (t->GetLinked()) { + if (l && t->GetLinked()) { rect.height += l->GetHeight(); } else if (l && trackRect.y >= 0) {