1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-16 14:13:53 +01:00

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.
This commit is contained in:
Paul Licameli
2018-05-24 18:37:56 -04:00
parent 0887d6d01e
commit bbe54f47ca

View File

@@ -1866,7 +1866,7 @@ void TrackPanel::DrawEverythingElse(TrackPanelDrawingContext &context,
bool skipBorder = false; bool skipBorder = false;
Track *l = t->GetLink(); Track *l = t->GetLink();
if (t->GetLinked()) { if (l && t->GetLinked()) {
rect.height += l->GetHeight(); rect.height += l->GetHeight();
} }
else if (l && trackRect.y >= 0) { else if (l && trackRect.y >= 0) {