1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 09:01:15 +02:00

Remove AudacityProject::GetSelection

This commit is contained in:
Paul Licameli
2019-03-27 04:24:36 -04:00
parent 4018b191b4
commit ca5bb78abe
5 changed files with 4 additions and 6 deletions

View File

@@ -394,7 +394,7 @@ bool DoEffect(
auto trackPanel = project.GetTrackPanel();
auto trackFactory = project.GetTrackFactory();
auto rate = project.GetRate();
auto &selectedRegion = project.GetSelection();
auto &selectedRegion = project.GetViewInfo().selectedRegion;
auto commandManager = project.GetCommandManager();
const PluginDescriptor *plug = PluginManager::Get().GetPlugin(ID);

View File

@@ -735,7 +735,7 @@ void OnToggleSpectralSelection(const CommandContext &context)
{
auto &project = context.project;
auto trackPanel = project.GetTrackPanel();
auto &selectedRegion = project.GetSelection();
auto &selectedRegion = project.GetViewInfo().selectedRegion;
const double f0 = selectedRegion.f0();
const double f1 = selectedRegion.f1();

View File

@@ -154,7 +154,7 @@ void DoMoveToLabel(AudacityProject &project, bool next)
// If there is a single label track, or there is a label track at or below
// the focused track
auto &selectedRegion = project.GetSelection();
auto &selectedRegion = project.GetViewInfo().selectedRegion;
if (lt) {
int i;
if (next)