mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Fix transient removal -- #7785
Incorrect iterators were used for user-transients.
This commit is contained in:
parent
12da3016e6
commit
f8e3a1cdcd
1 changed files with 2 additions and 2 deletions
|
|
@ -1714,8 +1714,8 @@ AudioRegion::remove_transient (samplepos_t where)
|
|||
if (_valid_transients) {
|
||||
const samplepos_t p = where - (_position + _transient_user_start - _start);
|
||||
AnalysisFeatureList::iterator i = std::find (_user_transients.begin (), _user_transients.end (), p);
|
||||
if (i != _transients.end ()) {
|
||||
_transients.erase (i);
|
||||
if (i != _user_transients.end ()) {
|
||||
_user_transients.erase (i);
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue