1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-22 06:22:58 +02:00

Fix for bug #887

A little overkill, but low risk since the majority of the source
changed isn't actually used.
This commit is contained in:
Leland Lucius
2015-05-16 17:57:01 -05:00
parent f98d9ce712
commit cbcc78b183
14 changed files with 85 additions and 72 deletions

View File

@@ -38,7 +38,7 @@ Command *ImportCommandType::Create(CommandOutputTarget *target)
bool ImportCommand::Apply(CommandExecutionContext context)
{
wxString filename = GetString(wxT("Filename"));
return context.proj->Import(filename);
return context.GetProject()->Import(filename);
}
ImportCommand::~ImportCommand()
@@ -81,13 +81,13 @@ bool ExportCommand::Apply(CommandExecutionContext context)
double t0, t1;
if (selection)
{
t0 = context.proj->mViewInfo.selectedRegion.t0();
t1 = context.proj->mViewInfo.selectedRegion.t1();
t0 = context.GetProject()->mViewInfo.selectedRegion.t0();
t1 = context.GetProject()->mViewInfo.selectedRegion.t1();
}
else
{
t0 = 0.0;
t1 = context.proj->GetTracks()->GetEndTime();
t1 = context.GetProject()->GetTracks()->GetEndTime();
}
// Find the extension and check it's valid
@@ -101,7 +101,7 @@ bool ExportCommand::Apply(CommandExecutionContext context)
Exporter exporter;
bool exportSuccess = exporter.Process(context.proj, numChannels,
bool exportSuccess = exporter.Process(context.GetProject(), numChannels,
extension.c_str(), filename,
selection, t0, t1);