mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +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:
parent
5e761f2245
commit
4f76a4b5e1
@ -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")))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user