1
0
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:
Paul Licameli
2017-06-28 00:31:18 -04:00
parent e2f0a16839
commit 6684c7b9b0
13 changed files with 53 additions and 31 deletions

View File

@@ -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 );