1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 08:09:41 +02:00

Bug 1549: Retrieve Region does not ensure it is visible

This commit is contained in:
David Bailes 2020-06-10 12:43:28 +01:00
parent 85ed4abbca
commit ce07da936c

View File

@ -652,12 +652,14 @@ void OnSelectionRestore(const CommandContext &context)
{
auto &project = context.project;
auto &selectedRegion = ViewInfo::Get( project ).selectedRegion;
auto &window = ProjectWindow::Get(project);
if ((mRegionSave.t0() == 0.0) &&
(mRegionSave.t1() == 0.0))
return;
selectedRegion = mRegionSave;
window.ScrollIntoView(selectedRegion.t0());
ProjectHistory::Get( project ).ModifyState(false);
}