mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-06 15:37:44 +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 &project = context.project;
|
||||||
auto &selectedRegion = ViewInfo::Get( project ).selectedRegion;
|
auto &selectedRegion = ViewInfo::Get( project ).selectedRegion;
|
||||||
|
auto &window = ProjectWindow::Get(project);
|
||||||
|
|
||||||
if ((mRegionSave.t0() == 0.0) &&
|
if ((mRegionSave.t0() == 0.0) &&
|
||||||
(mRegionSave.t1() == 0.0))
|
(mRegionSave.t1() == 0.0))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
selectedRegion = mRegionSave;
|
selectedRegion = mRegionSave;
|
||||||
|
window.ScrollIntoView(selectedRegion.t0());
|
||||||
|
|
||||||
ProjectHistory::Get( project ).ModifyState(false);
|
ProjectHistory::Get( project ).ModifyState(false);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user