Lyrics on rests displayed a line too low

• Dec 29, 2018 - 17:29
Reported version
3.0
Priority
P0 - Critical
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

came up in https://musescore.org/en/node/280851
Adding a lyrics on a rest is possible since 3.0, but as soon as there is another lyrics on a note/chird in the same staff and system, the lyrics on rests move one line down.


Comments

We calculate the lyric y position relative to the staff, but actually, the parent of the lyric is the chord or rest, so we need to account for the y position of the chordrest. Either that or force lyrics to be considered ON_STAFF, like staff text, and then update pagePos() and canvasPos() (and possibly other functions) to handle ON_STAFF elements with a parent of a chordrest. The first change is much less obtrusive.

Fix version
3.0.3