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

fix #286530: scaling of dot, lines, and more in parts #4858

Merged
merged 1 commit into from
Apr 10, 2019

Conversation

MarcSabatella
Copy link
Contributor

See https://musescore.org/en/node/286530

Two separate issues here with similar effects. For stems, lines, tuplets, and probably some other elements, we simply weren't updating the styled properties of the cloned elements. Many things get updated anyhow during the course of layout, but some things aren't - only on construction of the element or on styleChanged(). So, we just needed a call to styleChanged() upon generating the parts.

For dots, the issue was that after cloning the notes, we then call Note::setScore(), but this function forgot to update the dots. So the dots on the note act like they belong to the master score instead of the part.

Both trivial fixes (one I figured out what was going on, anyhow). For safety, I also added a Style::precomputeValues() call on generating the part, but this isn't technically necessary as long we promise not to change any spatium-dependent style values after Sid::spatium itself.

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.

None yet

2 participants