1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-04 14:39:08 +02:00

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().
This commit is contained in:
David Bailes 2016-11-23 10:33:53 +00:00
parent 92f56fb733
commit 71694d026a

View File

@ -2726,6 +2726,7 @@ void AudacityProject::OnMoveToLabel(bool next)
}
else {
GetViewInfo().selectedRegion = label->selectedRegion;
mTrackPanel->ScrollIntoView(GetViewInfo().selectedRegion.t0());
RedrawProject();
}