mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-19 09:01:15 +02:00
Remove AudacityProject::GetSelection
This commit is contained in:
@@ -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);
|
||||
|
@@ -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();
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user