From ea623cac61f43baf3890c2c8a71c95d7ad453e28 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Tue, 27 Aug 2013 20:31:22 +0200 Subject: assertion fixes in undo and part m( --- muse2/muse/part.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'muse2/muse/part.cpp') 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 -- cgit v1.2.3