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:
parent
85ed4abbca
commit
ce07da936c
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user