1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 07:59:27 +02:00

Bug 2670 - Audacity 3.x crashes when you open a 1.2.6 AUP project

This commit is contained in:
Leland Lucius 2021-02-18 20:37:05 -06:00
parent 8fce1db1ae
commit b1f6c988db

View File

@ -1096,6 +1096,15 @@ bool AUPImportFileHandle::HandleSequence(XMLTagHandler *&handler)
WaveClip *waveclip = static_cast<WaveClip *>(node.handler);
// Earlier versions of Audacity had a single implied waveclip, so for
// these versions, we get or create the only clip in the track.
if (mParentTag.IsSameAs(wxT("wavetrack")))
{
XMLTagHandler *dummy;
HandleWaveClip(dummy);
waveclip = mClip;
}
while(*mAttrs)
{
const wxChar *attr = *mAttrs++;