Skip to content

Commit

Permalink
partial fix for #23324: cross staff beaming applied in parts when add…
Browse files Browse the repository at this point in the history
…ed in score and vice versa
  • Loading branch information
lasconic committed Aug 4, 2014
1 parent 491625d commit 25addca
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions libmscore/undo.cpp
Expand Up @@ -2628,10 +2628,21 @@ ChangeChordStaffMove::ChangeChordStaffMove(Chord* c, int v)

void ChangeChordStaffMove::flip()
{
const LinkedElements* l = chord->links();
int v = chord->staffMove();
chord->setStaffMove(staffMove);
chord->measure()->cmdUpdateNotes(chord->staffIdx());
chord->score()->setLayoutAll(true);
if (l) {
for (Element* e : *l) {
Chord* c = static_cast<Chord*>(e);
c->setStaffMove(staffMove);
c->measure()->cmdUpdateNotes(c->staffIdx());
c->score()->setLayoutAll(true);
}
}
else {
chord->setStaffMove(staffMove);
chord->measure()->cmdUpdateNotes(chord->staffIdx());
chord->score()->setLayoutAll(true);
}
staffMove = v;
}

Expand Down

0 comments on commit 25addca

Please sign in to comment.