diff options
-rw-r--r-- | muse/muse/songpart.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/muse/muse/songpart.cpp b/muse/muse/songpart.cpp index e561476b..72faf7f8 100644 --- a/muse/muse/songpart.cpp +++ b/muse/muse/songpart.cpp @@ -162,8 +162,10 @@ void Song::cmdChangePart(Part* oPart, unsigned pos, unsigned len) // // move events so they stay at same position in song // - int delta = oPart->tick() - pos; + int delta = oPart->tick() - pos; Part* nPart = new Part(*oPart); + nPart->clone(new EventList); + const EventList* s = oPart->events(); for (ciEvent ie = s->begin(); ie != s->end(); ++ie) { int tick = ie->first + delta; |