diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-11-21 00:03:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-11-21 00:03:51 +0100 |
| commit | 3d143220dfa53329d37897ecf0898a5d3dce3fda (patch) | |
| tree | 67f2c362a73123a14b709252a90dae0bdb585beb | |
| parent | aac2c88908c1c7787ce0fde8e1b4ddf9de509828 (diff) | |
Fix crash on comparing reels with and without markers.
| -rw-r--r-- | src/reel.cc | 2 |
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; } |
