1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-29 16:53:51 +01:00

Merge pull request #229 from DjMorgul/master

Two small fixes for automation commands
This commit is contained in:
James Crook
2018-01-06 19:25:35 +00:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ bool GetTrackInfoCommand::Apply(CommandExecutionContext context)
} }
else if (mode.IsSameAs(wxT("EndTime"))) else if (mode.IsSameAs(wxT("EndTime")))
{ {
Status(wxString::Format(wxT("%f"), t->GetEndTime())); Status(wxString::Format(wxT("%.17g"), t->GetEndTime()));
} }
else if (mode.IsSameAs(wxT("Pan"))) else if (mode.IsSameAs(wxT("Pan")))
{ {

View File

@@ -92,7 +92,7 @@ bool ExportCommand::Apply(CommandExecutionContext context)
} }
// Find the extension and check it's valid // Find the extension and check it's valid
int splitAt = filename.Find(wxT(".")); int splitAt = filename.Find(wxUniChar('.'), true);
if (splitAt < 0) if (splitAt < 0)
{ {
Error(wxT("Export filename must have an extension!")); Error(wxT("Export filename must have an extension!"));