mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-21 04:45:58 +01:00
logic error in AutomationEvent::cut_copy_clear() when deciding whether to add an extra final point to an automation list
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@7169 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ae8b97416a
commit
32593eb61c
1 changed files with 2 additions and 2 deletions
|
|
@ -1147,11 +1147,11 @@ AutomationList::cut_copy_clear (double start, double end, int op)
|
|||
/* only add a boundary point if there is a point after "end"
|
||||
*/
|
||||
|
||||
if (op == 0 && (e != events.end() || end < (*e)->when)) { // cut
|
||||
if (op == 0 && (e != events.end() && end < (*e)->when)) { // cut
|
||||
events.insert (e, point_factory (end, end_value));
|
||||
}
|
||||
|
||||
if (op != 2 && (e != events.end() || end < (*e)->when)) { // cut/copy
|
||||
if (op != 2 && (e != events.end() && end < (*e)->when)) { // cut/copy
|
||||
nal->events.push_back (point_factory (end - start, end_value));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue