mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-19 17:28:09 +01:00
More careful use of weak pointers to tracks in UIHandles
This commit is contained in:
@@ -130,7 +130,7 @@ void SelectionState::ChangeSelectionOnShiftClick
|
||||
Track* pFirst = nullptr;
|
||||
Track* pLast = nullptr;
|
||||
// We will either extend from the first or from the last.
|
||||
auto pExtendFrom = mLastPickedTrack.lock();
|
||||
auto pExtendFrom = tracks.Lock(mLastPickedTrack);
|
||||
|
||||
if( !pExtendFrom ) {
|
||||
TrackListIterator iter( &tracks );
|
||||
|
||||
Reference in New Issue
Block a user