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 #307741 images attached to measures don't propagate between score and existing parts #6330

Merged
merged 3 commits into from
Jul 14, 2020

Conversation

mattmcclinch
Copy link
Contributor

Resolves: https://musescore.org/en/node/307741.

#5445 made images added to measures children of the measure rather than children of the measure's first segment. This turned out to be not such a great idea after all, since it really only solved a problem that is better solved by simply turning off automatic placement for the image. So this reverts that change.

http://musescore.org/en/node/292606 is better solved by making sure to layout images within Score::layoutSystemElements(). Since there is no way to know the purpose of any particular image, I do not know that we can come up with a better ordering of the layout of images in relation to other system elements.

Finally, regarding https://musescore.org/en/node/307741, there is code to correctly deal with images, but it is not reached unless ElementType::IMAGE is excluded from what is handled earlier.

This reverts commit dd98fad, which made images added to measures children of the measure rather than children of the measure's first segment. This turned out to be not such a great idea after all, since it really only solved a problem that is better solved by simply turning off automatic placement for the image.
Be sure to layout images within Score::layoutSystemElements().
…e and existing parts

There is code to correctly deal with images, but it is not reached unless ElementType::IMAGE is excluded from what is handled earlier.
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.

2 participants