1
0
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:
Paul Licameli 2017-06-24 11:36:19 -04:00
parent 4fab7365e5
commit e771d6d9b5

View File

@ -5741,8 +5741,10 @@ void AudacityProject::OnSplitNew()
mViewInfo.selectedRegion.t1()); mViewInfo.selectedRegion.t1());
} }
#endif #endif
dest->SetOffset(wxMax(newt0, offset)); if (dest) {
FinishCopy(n, std::move(dest), *mTracks); dest->SetOffset(wxMax(newt0, offset));
FinishCopy(n, std::move(dest), *mTracks);
}
} }
if (n == l) { if (n == l) {