1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 08:09:32 +02:00

On GetTrackInfo command, return end time (a double) with all its decimals

It's needed when we try to end a selection - with Select command - at the end of a track, because the value returned by GetTrackInfo was rounded, and therefore Select command would sometimes fail with "End time is after end of track!" error.
This commit is contained in:
José Manuel Ferrer Ortiz 2018-01-06 19:35:44 +01:00
parent 5e761f2245
commit 4f76a4b5e1

View File

@ -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")))
{