mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +02:00
Restore a NULL check in OnSplitNew, don't crash if non-wave selected
This commit is contained in:
parent
4fab7365e5
commit
e771d6d9b5
@ -5741,8 +5741,10 @@ void AudacityProject::OnSplitNew()
|
||||
mViewInfo.selectedRegion.t1());
|
||||
}
|
||||
#endif
|
||||
dest->SetOffset(wxMax(newt0, offset));
|
||||
FinishCopy(n, std::move(dest), *mTracks);
|
||||
if (dest) {
|
||||
dest->SetOffset(wxMax(newt0, offset));
|
||||
FinishCopy(n, std::move(dest), *mTracks);
|
||||
}
|
||||
}
|
||||
|
||||
if (n == l) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user