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:
@@ -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")))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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!"));
|
||||||
|
|||||||
Reference in New Issue
Block a user