summaryrefslogtreecommitdiff
path: root/muse2/muse/functions.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2013-09-19 22:34:42 +0200
committerFlorian Jung <flo@windfisch.org>2013-09-19 22:34:42 +0200
commit1e07c748f3a30da6794577cf7e9cb5d62812cfe5 (patch)
treeac0e15a937fff15e99402cd739935e957f8b2e2e /muse2/muse/functions.cpp
parentb3fc353a09496ee0aea7099d72e6963f4c2fc774 (diff)
Use Part::addEvent() instead of adding to EventList directly
Diffstat (limited to 'muse2/muse/functions.cpp')
-rw-r--r--muse2/muse/functions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/muse2/muse/functions.cpp b/muse2/muse/functions.cpp
index 7569cc95..45c665b1 100644
--- a/muse2/muse/functions.cpp
+++ b/muse2/muse/functions.cpp
@@ -1523,7 +1523,7 @@ bool merge_parts(const set<const Part*>& parts)
{
Event new_event=ev_it->second.clone();
new_event.setTick( new_event.tick() + (*p_it)->tick() - new_part->tick() );
- new_part->nonconst_events().add(new_event);
+ new_part->addEvent(new_event);
}
}