From 4f76a4b5e1c924d7ac51c807870564e1ced2211d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Ferrer=20Ortiz?= Date: Sat, 6 Jan 2018 19:35:44 +0100 Subject: [PATCH] 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. --- src/commands/GetTrackInfoCommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/GetTrackInfoCommand.cpp b/src/commands/GetTrackInfoCommand.cpp index 455a799d8..43072db6b 100644 --- a/src/commands/GetTrackInfoCommand.cpp +++ b/src/commands/GetTrackInfoCommand.cpp @@ -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"))) {