summaryrefslogtreecommitdiff
path: root/muse2/muse/part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/muse/part.cpp')
-rw-r--r--muse2/muse/part.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/muse2/muse/part.cpp b/muse2/muse/part.cpp
index e6fb087d..14108b63 100644
--- a/muse2/muse/part.cpp
+++ b/muse2/muse/part.cpp
@@ -386,7 +386,6 @@ void removePortCtrlEvents(Part* part, bool doClones)
iEvent Part::addEvent(Event& p)
{
- assert(!hasClones());
return _events.add(p);
}
@@ -491,7 +490,10 @@ Part* Part::duplicate() const
// copy the eventlist; duplicate each Event(Ptr!).
for (MusECore::ciEvent i = _events.begin(); i != _events.end(); ++i)
- dup->addEvent(i->second.clone());
+ {
+ Event nev = i->second.clone();
+ dup->addEvent(nev);
+ }
return dup;
}