Remove a compiler warning in Menus.cpp

Quick fix of compiler warning caused by some of my code.
This commit is contained in:
David Bailes 2018-07-05 13:11:28 +01:00
parent bfec6f0aa2
commit 6c48be71ff
1 changed files with 3 additions and 3 deletions

View File

@ -7677,9 +7677,9 @@ int AudacityProject::FindClipBoundaries(double time, bool next, std::vector<Foun
results.push_back(result);
}
if (stereoAndDiff) {
auto waveTrack2 = static_cast<const WaveTrack*>(track->GetLink());
auto result = next ? FindNextClipBoundary(waveTrack2, time) :
FindPrevClipBoundary(waveTrack2, time);
waveTrack = static_cast<const WaveTrack*>(track->GetLink());
result = next ? FindNextClipBoundary(waveTrack, time) :
FindPrevClipBoundary(waveTrack, time);
if (result.nFound > 0) {
result.trackNum = trackNum;
result.channel = stereoAndDiff;