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) {