1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-08 04:32:00 +01:00

Define TrackId to identify tracks across undo states

This commit is contained in:
Paul Licameli
2018-01-10 19:28:16 -05:00
parent 8b60e7f02d
commit bd2c7e6abc
3 changed files with 70 additions and 1 deletions

View File

@@ -3585,6 +3585,10 @@ XMLTagHandler *AudacityProject::HandleXMLChild(const wxChar *tag)
return mTags.get();
}
// Note that TrackList::Add includes assignment of unique in-session TrackId
// to a reloaded track, though no promise that it equals the id it originally
// had
if (!wxStrcmp(tag, wxT("wavetrack"))) {
return mTracks->Add(mTrackFactory->NewWaveTrack());
}