Skip to content

Commit

Permalink
Merge pull request #2796 from CombatCube/119976-dash-melisma-shape
Browse files Browse the repository at this point in the history
Fix #119976: Inter-staff spacing for lyrics with dashes and melismas
  • Loading branch information
wschweer committed Aug 24, 2016
2 parents 7c5e99a + 2087399 commit 47bbb9d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libmscore/layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3632,7 +3632,12 @@ System* Score::collectSystem(LayoutContext& lc)
Spanner* sp = ss->spanner();
if (sp->tick() < m->endTick() && sp->tick2() > m->tick()) {
// spanner shape must be translated from system coordinate space to measure coordinate space
m->staffShape(sp->staffIdx()).add(ss->shape().translated(ss->pos() - m->pos()));
if (ss->type() == Element::Type::LYRICSLINE_SEGMENT) {
m->staffShape(sp->staffIdx()).add(ss->shape().translated(-m->pos()));
}
else {
m->staffShape(sp->staffIdx()).add(ss->shape().translated(ss->pos() - m->pos()));
}
}
}
}
Expand Down

0 comments on commit 47bbb9d

Please sign in to comment.