Skip to content

Commit

Permalink
fix #280865: lyric attached to rest too low
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Feb 16, 2019
1 parent 27dc900 commit 958ecb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/lyrics.cpp
Expand Up @@ -336,11 +336,11 @@ void Lyrics::layout2(int nAbove)

if (placeBelow()) {
qreal yo = segment()->measure()->system()->staff(staffIdx())->bbox().height();
rypos() = lh * (_no - nAbove) + yo;
rypos() = lh * (_no - nAbove) + yo - chordRest()->y();
rpos() += styleValue(Pid::OFFSET, Sid::lyricsPosBelow).toPointF();
}
else {
rypos() = -lh * (nAbove - _no - 1);
rypos() = -lh * (nAbove - _no - 1) - chordRest()->y();
rpos() += styleValue(Pid::OFFSET, Sid::lyricsPosAbove).toPointF();
}
}
Expand Down

0 comments on commit 958ecb4

Please sign in to comment.