projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d5f21a
)
Do not duplicate note id in copy constructor
author
nick_m
<mainsbridge@gmail.com>
Thu, 8 Jun 2017 13:11:56 +0000
(23:11 +1000)
committer
nick_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
patch
|
blob
|
history
diff --git
a/libs/evoral/src/Note.cpp
b/libs/evoral/src/Note.cpp
index f2d369d825ecf0061e0660a9ef2832556d1b7a29..631a995ab364c58feaf459c21408d3bbabb06ee0 100644
(file)
--- a/
libs/evoral/src/Note.cpp
+++ b/
libs/evoral/src/Note.cpp
@@
-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());
/*