mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 16:19:43 +02:00
Merge pull request #229 from DjMorgul/master
Two small fixes for automation commands
This commit is contained in:
commit
d22430c789
@ -100,7 +100,7 @@ bool GetTrackInfoCommand::Apply(CommandExecutionContext context)
|
||||
}
|
||||
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")))
|
||||
{
|
||||
|
@ -92,7 +92,7 @@ bool ExportCommand::Apply(CommandExecutionContext context)
|
||||
}
|
||||
|
||||
// Find the extension and check it's valid
|
||||
int splitAt = filename.Find(wxT("."));
|
||||
int splitAt = filename.Find(wxUniChar('.'), true);
|
||||
if (splitAt < 0)
|
||||
{
|
||||
Error(wxT("Export filename must have an extension!"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user