1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-05 14:18:53 +02:00

Clip boundary command: minor change to Cursor to next clip boundary

The command "cursor to next clip boundary" now finds the next clip boundary after selection end, rather than selection start.
This commit is contained in:
David Bailes 2017-05-16 10:26:12 +01:00
parent 9da999d40c
commit ff2838e98d

View File

@ -6777,7 +6777,8 @@ void AudacityProject::OnCursorPrevClipBoundary()
void AudacityProject::OnCursorClipBoundary(bool next)
{
std::vector<FoundClipBoundary> results;
int nTracksSearched = FindClipBoundaries(mViewInfo.selectedRegion.t0(), next, results);
int nTracksSearched = FindClipBoundaries(next ? mViewInfo.selectedRegion.t1() :
mViewInfo.selectedRegion.t0(), next, results);
if (results.size() > 0) {
// note that if there is more than one result, each has the same time value.