mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
static TrackPanel::Get()...
... not member functions of AudacityProject
This commit is contained in:
@@ -163,11 +163,11 @@ bool SetTrackStatusCommand::ApplyInner(const CommandContext & context, Track * t
|
||||
if( !bIsSecondChannel ){
|
||||
if( bHasFocused )
|
||||
{
|
||||
TrackPanel *panel = context.project.GetTrackPanel();
|
||||
auto &panel = TrackPanel::Get( context.project );
|
||||
if( bFocused)
|
||||
panel->SetFocusedTrack( t );
|
||||
else if( t== panel->GetFocusedTrack() )
|
||||
panel->SetFocusedTrack( nullptr );
|
||||
panel.SetFocusedTrack( t );
|
||||
else if( t== panel.GetFocusedTrack() )
|
||||
panel.SetFocusedTrack( nullptr );
|
||||
}
|
||||
}
|
||||
return true;
|
||||
@@ -395,8 +395,8 @@ bool SetTrackVisualsCommand::ApplyInner(const CommandContext & context, Track *
|
||||
mVZoomTop = c + ZOOMLIMIT / 2.0;
|
||||
}
|
||||
wt->SetDisplayBounds(mVZoomBottom, mVZoomTop);
|
||||
TrackPanel *const tp = ::GetActiveProject()->GetTrackPanel();
|
||||
tp->UpdateVRulers();
|
||||
auto &tp = TrackPanel::Get( *::GetActiveProject() );
|
||||
tp.UpdateVRulers();
|
||||
}
|
||||
|
||||
if( wt && bHasUseSpecPrefs ){
|
||||
|
||||
Reference in New Issue
Block a user