Do not duplicate note id in copy constructor
authornick_m <mainsbridge@gmail.com>
Thu, 8 Jun 2017 13:11:56 +0000 (23:11 +1000)
committernick_m <mainsbridge@gmail.com>
Thu, 8 Jun 2017 13:11:56 +0000 (23:11 +1000)
This fixes selection undo after copy-dragging notes, but there
are probably other cases where duplicate note ids may cause problems.

libs/evoral/src/Note.cpp

index f2d369d825ecf0061e0660a9ef2832556d1b7a29..631a995ab364c58feaf459c21408d3bbabb06ee0 100644 (file)
@@ -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());
        /*