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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user