mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-22 07:10:06 +02:00
travis
This commit is contained in:
parent
301fa337d5
commit
43b4d3cc99
@ -1694,11 +1694,12 @@ bool WaveClip::ExpandCutLine(double cutLinePosition)
|
||||
// another cutline!), invalidating the iterator we had.
|
||||
auto begin = mCutLines.begin(), end = mCutLines.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)
|
||||
mCutLines.erase(it); // deletes cutline!
|
||||
else
|
||||
else {
|
||||
wxASSERT(false);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user