Skip to content

Commit

Permalink
fix #29436: chord symbols don't change size with staff
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Aug 12, 2014
1 parent 47b4909 commit 21570dd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libmscore/undo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2361,6 +2361,7 @@ static void notifyTimeSigs(void*, Element* e)
void ChangeStaff::flip()
{
bool invisibleChanged = staff->invisible() != invisible;
bool smallChanged = staff->small() != small;

int oldSmall = staff->small();
bool oldInvisible = staff->invisible();
Expand Down Expand Up @@ -2391,6 +2392,16 @@ void ChangeStaff::flip()
mstaff->lines->setVisible(!staff->invisible());
}
}
if (smallChanged) {
for (Segment* s = score->firstSegment(Segment::Type::ChordRest); s; s = s->next1(Segment::Type::ChordRest)) {
for (Element* e : s->annotations()) {
if (e->type() == Element::Type::HARMONY && e->staff() == staff) {
Harmony* h = static_cast<Harmony*>(e);
h->render();
}
}
}
}
staff->score()->setLayoutAll(true);
staff->score()->rebuildMidiMapping();
staff->score()->setPlaylistDirty(true);
Expand Down

0 comments on commit 21570dd

Please sign in to comment.