mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-22 15:20:15 +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.
|
// 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user