Skip to content

Commit

Permalink
Fix #321902: Crash on saving after adding note-anchored lines
Browse files Browse the repository at this point in the history
to any but the top part/instrument
  • Loading branch information
Jojo-Schmitz committed Mar 10, 2023
1 parent 69e38ab commit f2a3394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/libmscore/engravingitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ void EngravingItem::writeProperties(XmlWriter& xml) const
int index = ctx->assignLocalIndex(loc);
ctx->setLidLocalIndex(_links->lid(), index);
} else {
if (s->links()) {
if (s && s->links()) {
Staff* linkedStaff = toStaff(s->links()->mainElement());
loc.setStaff(static_cast<int>(linkedStaff->idx()));
}
Expand Down

0 comments on commit f2a3394

Please sign in to comment.