summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Schweer <ws.seh.de>2006-11-28 17:38:58 +0000
committerWerner Schweer <ws.seh.de>2006-11-28 17:38:58 +0000
commitf1be75cdb16077aa63f25ece85fe55860ee452ae (patch)
tree6d4d75ebfd951d9317614ba34b9b732e8a69c15c
parentbafb1d6cde0968ce5da78bb6dfaae750ecb12537 (diff)
update
-rw-r--r--muse/muse/songpart.cpp4
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;