diff options
Diffstat (limited to 'muse2')
-rw-r--r-- | muse2/muse/part.cpp | 9 | ||||
-rw-r--r-- | muse2/muse/undo.cpp | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/muse2/muse/part.cpp b/muse2/muse/part.cpp index 9b869567..c46e7ab9 100644 --- a/muse2/muse/part.cpp +++ b/muse2/muse/part.cpp @@ -81,10 +81,11 @@ void Part::chainClone(Part* p) void Part::rechainClone() { - assert(_backupClone); - - this->chainClone(_backupClone); - _backupClone = NULL; + if(_backupClone) + { + this->chainClone(_backupClone); + _backupClone = NULL; + } } bool Part::isCloneOf(const Part* other) const diff --git a/muse2/muse/undo.cpp b/muse2/muse/undo.cpp index 3d2804c6..b5ee3cec 100644 --- a/muse2/muse/undo.cpp +++ b/muse2/muse/undo.cpp @@ -623,7 +623,7 @@ UndoOp::UndoOp(UndoType type_, const Part* part_, unsigned old_len_or_tick, unsi UndoOp::UndoOp(UndoType type_, const Part* part_, bool selected_, bool sel_old_) { assert(type_==SelectPart); - assert(part); + assert(part_); type=type_; part = part_; |