Do not duplicate note id in copy constructor
This fixes selection undo after copy-dragging notes, but there are probably other cases where duplicate note ids may cause problems.
This commit is contained in:
parent
3d5f21a3e5
commit
d455806a73
@ -57,8 +57,6 @@ Note<Time>::Note(const Note<Time>& copy)
|
||||
: _on_event(copy._on_event, true)
|
||||
, _off_event(copy._off_event, true)
|
||||
{
|
||||
set_id (copy.id());
|
||||
|
||||
assert(_on_event.buffer());
|
||||
assert(_off_event.buffer());
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user