1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-03 14:13:11 +02:00
This commit is contained in:
Leland Lucius 2015-06-15 23:38:02 -05:00
parent 0d86cd1fd5
commit de1fe0ae37
2 changed files with 3 additions and 4 deletions

View File

@ -3249,16 +3249,14 @@ void AudacityProject::WriteXML(XMLWriter &xmlFile)
if (t->GetLinked())
t = iter.Next();
}
else if (t->GetKind() == Track::Wave && mAutoSaving)
else if (t->GetKind() == Track::Wave)
{
pWaveTrack = (WaveTrack*)t;
pWaveTrack->SetAutoSaveIdent(++ndx);
pWaveTrack->SetAutoSaveIdent(mAutoSaving ? ++ndx : 0);
t->WriteXML(xmlFile);
}
else
{
pWaveTrack = (WaveTrack*)t;
pWaveTrack->SetAutoSaveIdent(0);
t->WriteXML(xmlFile);
}

View File

@ -100,6 +100,7 @@ WaveTrack::WaveTrack(DirManager *projDirManager, sampleFormat format, double rat
mDisplayLocations = NULL;
mDisplayNumLocationsAllocated = 0;
mLastDisplay = -1;
mAutoSaveIdent = 0;
}
WaveTrack::WaveTrack(WaveTrack &orig):