1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-22 15:20:15 +02:00
This commit is contained in:
Paul Licameli 2016-09-07 13:38:39 -04:00
parent 301fa337d5
commit 43b4d3cc99

View File

@ -1694,11 +1694,12 @@ bool WaveClip::ExpandCutLine(double cutLinePosition)
// another cutline!), invalidating the iterator we had. // another cutline!), invalidating the iterator we had.
auto begin = mCutLines.begin(), end = mCutLines.end(); auto begin = mCutLines.begin(), end = mCutLines.end();
it = std::find_if(begin, end, it = std::find_if(begin, end,
[=](const decltype(*begin) &p){ return p.get() == cutline; }); [=](decltype(*begin) &p){ return p.get() == cutline; });
if (it != end) if (it != end)
mCutLines.erase(it); // deletes cutline! mCutLines.erase(it); // deletes cutline!
else else {
wxASSERT(false); wxASSERT(false);
}
return true; return true;
} }
} }