From 3d143220dfa53329d37897ecf0898a5d3dce3fda Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 21 Nov 2020 00:03:51 +0100 Subject: Fix crash on comparing reels with and without markers. --- src/reel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/reel.cc b/src/reel.cc index d3e2a850..29ce9038 100644 --- a/src/reel.cc +++ b/src/reel.cc @@ -185,7 +185,7 @@ Reel::equals (boost::shared_ptr other, EqualityOptions opt, NoteHand return false; } - if (_main_markers && !_main_markers->equals (other->_main_markers, opt, note)) { + if (_main_markers && (!other->_main_markers || !_main_markers->equals (other->_main_markers, opt, note))) { return false; } -- cgit v1.2.3