mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-31 07:59:27 +02:00
Another fix for list iterators
This commit is contained in:
parent
40a117b160
commit
29c98f27f6
@ -277,11 +277,13 @@ Track *Track::GetLink() const
|
||||
return next.first->get();
|
||||
}
|
||||
|
||||
auto prev = pList->getPrev( mNode );
|
||||
if ( !pList->isNull( prev ) ) {
|
||||
auto track = prev.first->get();
|
||||
if (track && track->GetLinked())
|
||||
return track;
|
||||
if (mNode.first != mNode.second->begin()) {
|
||||
auto prev = pList->getPrev( mNode );
|
||||
if ( !pList->isNull( prev ) ) {
|
||||
auto track = prev.first->get();
|
||||
if (track && track->GetLinked())
|
||||
return track;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user