Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset offset when placement is changed #25014

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

miiizen
Copy link
Contributor

@miiizen miiizen commented Oct 2, 2024

Resolves: #24551

When default-y and relative-y is used to determine which side of the stave an element goes, we need to reset the offset of the element to use the correct value. In this case, make sure the offset is updated to Sid::lyricsPosAbove, not Sid::lyricsPosBelow as it was initialised to.

Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Oct 2, 2024
Backport of musescore#25014 plus 2 more small changes
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Oct 2, 2024
Backport of musescore#25014 plus 2 more small changes
@@ -5374,6 +5382,7 @@ void MusicXMLParserPass2::barline(const String& partId, Measure* measure, const
}
if (fermataType == u"inverted") {
fermata->setPlacement(PlacementV::BELOW);
fermata->resetProperty(Pid::OFFSET);
} else if (fermataType == u"") {
Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz Oct 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this rather be

            } else if (fermataType.empty()) {

Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Oct 2, 2024
Backport of musescore#25014 plus 2 more small changes
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Oct 2, 2024
Backport of musescore#25014 plus 2 more small changes, one apparently an ommision from #444, which backported musescore#22577, the other stems from musescore#22740, which I haven't backported (yet).

Update testPlacementOffsetDefaults_ref.mscx
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Oct 2, 2024
Backport of musescore#25014 plus 2 more small changes, one apparently an ommision from #444, which backported musescore#22577, the other stems from musescore#22740, which I haven't backported (yet, see next comit).

Update testPlacementOffsetDefaults_ref.mscx

Update testPlacementOffsetDefaults_ref.mscx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Different vertical offset for lyrics above imported from MusicXML when relative-x is present
2 participants