From 71694d026a3984e78ccde29939181ed9679896f3 Mon Sep 17 00:00:00 2001 From: David Bailes Date: Wed, 23 Nov 2016 10:33:53 +0000 Subject: [PATCH] Fix for Move to Next/Previous Label commands Problem was that when these commands were used when playback was stopped, the tracks did not automatically scroll to make sure that the label that had been moved to was visible. Fix: call TrackPanel::ScrollIntoView(). --- src/Menus.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Menus.cpp b/src/Menus.cpp index 39c68fae0..a546d27d2 100644 --- a/src/Menus.cpp +++ b/src/Menus.cpp @@ -2726,6 +2726,7 @@ void AudacityProject::OnMoveToLabel(bool next) } else { GetViewInfo().selectedRegion = label->selectedRegion; + mTrackPanel->ScrollIntoView(GetViewInfo().selectedRegion.t0()); RedrawProject(); }