mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-13 14:13:32 +02:00
static TrackList::Get()...
... not member function of AudacityProject
This commit is contained in:
@@ -417,8 +417,8 @@ void LOFImportFileHandle::lofOpenFiles(wxString* ln)
|
||||
;
|
||||
else if (Internat::CompatibleToDouble(tokenholder, &offset))
|
||||
{
|
||||
auto tracks = mProject->GetTracks();
|
||||
auto t = *tracks->Leaders().rbegin();
|
||||
auto &tracks = TrackList::Get( *mProject );
|
||||
auto t = *tracks.Leaders().rbegin();
|
||||
|
||||
// t is now the last track in the project, unless the import of
|
||||
// all tracks failed, in which case it will be null. In that
|
||||
@@ -471,7 +471,7 @@ void LOFImportFileHandle::doDurationAndScrollOffset()
|
||||
bool doSomething = callDurationFactor || callScrollOffset;
|
||||
if (callDurationFactor)
|
||||
{
|
||||
double longestDuration = mProject->GetTracks()->GetEndTime();
|
||||
double longestDuration = TrackList::Get( *mProject ).GetEndTime();
|
||||
mProject->ZoomBy(longestDuration / durationFactor);
|
||||
callDurationFactor = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user