summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-21 00:03:51 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-21 00:03:51 +0100
commit3d143220dfa53329d37897ecf0898a5d3dce3fda (patch)
tree67f2c362a73123a14b709252a90dae0bdb585beb /src
parentaac2c88908c1c7787ce0fde8e1b4ddf9de509828 (diff)
Fix crash on comparing reels with and without markers.
Diffstat (limited to 'src')
-rw-r--r--src/reel.cc2
1 files changed, 1 insertions, 1 deletions
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<const Reel> 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;
}