Skip to content

Commit

Permalink
fix #22645: Adding bar to part of multi-instrument score causes crash
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Sep 10, 2013
1 parent bff7d9d commit 887df4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/edit.cpp
Expand Up @@ -1868,7 +1868,7 @@ MeasureBase* Score::insertMeasure(Element::ElementType type, MeasureBase* measur
if (s == 0 || s->element(track) == 0) {
// add rest to this staff and to all the staves linked to it
Rest* rest = new Rest(root, TDuration(TDuration::V_MEASURE));
Fraction timeStretch(staff(staffIdx)->timeStretch(m->tick()));
Fraction timeStretch(root->staff(staffIdx)->timeStretch(m->tick()));
rest->setDuration(m->len() / timeStretch);
rest->setTrack(track);
undoAddCR(rest, m, m->tick());
Expand Down

0 comments on commit 887df4a

Please sign in to comment.