fix #288609: Crash when creating parts if a rest on a wrong staff after using cross-staff notation
This commit is contained in:
parent
1a6058f9a1
commit
5aa7cca1da
1 changed files with 4 additions and 1 deletions
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue