Skip to content

Commit

Permalink
Merge pull request #4997 from mattmcclinch/288609-paste-staff
Browse files Browse the repository at this point in the history
fix #288609: Crash when creating parts if a rest on a wrong staff after using cross-staff notation
  • Loading branch information
anatoly-os committed May 11, 2019
2 parents 44ac5b3 + 5aa7cca commit 60546fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libmscore/chordrest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,11 @@ bool ChordRest::readProperties(XmlReader& e)
}
else if (tag == "dots")
setDots(e.readInt());
else if (tag == "staffMove")
else if (tag == "staffMove") {
_staffMove = e.readInt();
if (vStaffIdx() < part()->staves()->first()->idx() || vStaffIdx() > part()->staves()->last()->idx())
_staffMove = 0;
}
else if (tag == "Spanner")
Spanner::readSpanner(e, this, track());
else if (tag == "Lyrics") {
Expand Down

0 comments on commit 60546fc

Please sign in to comment.