Skip to content

Commit

Permalink
fix #213221: Crash when adding fermata on barline in part for staff >…
Browse files Browse the repository at this point in the history
…1 when score has spanning barlines
  • Loading branch information
lasconic committed Aug 18, 2017
1 parent 437001d commit fb2f08b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libmscore/undo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,8 @@ void Score::undoAddElement(Element* element)
BarLine* bl = static_cast<BarLine*>(seg->element(ntrack));
na->setParent(bl);
}
undo(new AddElement(na));
if (na->parent())
undo(new AddElement(na));
}
else if (element->type() == Element::Type::CHORDLINE
|| element->type() == Element::Type::LYRICS) {
Expand Down

0 comments on commit fb2f08b

Please sign in to comment.