mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-18 00:37:59 +01:00
TrackPanelCellIterator visits all cells, and FindCell simply uses it
This commit is contained in:
@@ -600,7 +600,11 @@ VisibleTrackIterator::VisibleTrackIterator(AudacityProject *project)
|
||||
bool VisibleTrackIterator::Condition(Track *t)
|
||||
{
|
||||
wxRect r(0, t->GetY(), 1, t->GetHeight());
|
||||
return r.Intersects(mPanelRect);
|
||||
if( r.Intersects(mPanelRect) )
|
||||
return true;
|
||||
auto partner = t->GetLink();
|
||||
if ( partner && t->GetLinked() )
|
||||
return Condition( partner );
|
||||
}
|
||||
|
||||
// SyncLockedTracksIterator
|
||||
|
||||
Reference in New Issue
Block a user