mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-03 06:03:13 +02:00
Fix for bug #1034
This commit is contained in:
parent
0d86cd1fd5
commit
de1fe0ae37
@ -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);
|
||||
}
|
||||
|
||||
|
@ -100,6 +100,7 @@ WaveTrack::WaveTrack(DirManager *projDirManager, sampleFormat format, double rat
|
||||
mDisplayLocations = NULL;
|
||||
mDisplayNumLocationsAllocated = 0;
|
||||
mLastDisplay = -1;
|
||||
mAutoSaveIdent = 0;
|
||||
}
|
||||
|
||||
WaveTrack::WaveTrack(WaveTrack &orig):
|
||||
|
Loading…
x
Reference in New Issue
Block a user