diff --git a/src/commands/SelectCommand.cpp b/src/commands/SelectCommand.cpp index 6c5a100a2..e8698a0f6 100644 --- a/src/commands/SelectCommand.cpp +++ b/src/commands/SelectCommand.cpp @@ -54,6 +54,11 @@ void SelectTimeCommand::PopulateOrExchange(ShuttleGui & S) } bool SelectTimeCommand::Apply(const CommandContext & context){ + if( mFromEnd ){ + double TEnd = context.GetProject()->GetTracks()->GetEndTime(); + context.GetProject()->mViewInfo.selectedRegion.setTimes(TEnd - mT0, TEnd - mT1); + return true; + } context.GetProject()->mViewInfo.selectedRegion.setTimes(mT0, mT1); return true; }