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 more anchors-related issues #23190

Merged
merged 10 commits into from
Jun 18, 2024

Conversation

mike-spa
Copy link
Contributor

@mike-spa mike-spa commented Jun 11, 2024

Resolves: #22880
Resolves: #23185
Resolves: #23206
Resolves: #23209

A couple of noteworthy changes:

  1. When two segments are at the same tick (i.e. happen at the same time), we establish which one goes before from the order of this enumeration. Given that the TimeTick segment isn't really an engraving thing but an invisible ruler, the choice of putting it before or after the other segments seemed just a matter of convention, so I originally put it last. From working on these issues thoguh I've realized that the more convenient choice is to put it before ChordRest type. This simplifies several things downstream.
    image

  2. I've also realized that it makes sense for Segment::allElementsInvisible to always return true for TimeTick segments, because from an engraving point of view anchors are always invisible. This also simplifies a few things downstream.

@mike-spa mike-spa requested a review from oktophonie June 11, 2024 13:01
@mike-spa mike-spa force-pushed the fixEndOfDurationBugs branch 2 times, most recently from dcf8d9b to 018ef39 Compare June 12, 2024 11:58
@mike-spa mike-spa changed the title Fix end of duration bugs Fix more anchors-related issues Jun 13, 2024
@oktophonie oktophonie added the vtests This PR produces approved changes to vtest results label Jun 14, 2024
@RomanPudashkin RomanPudashkin merged commit fb24a78 into musescore:master Jun 18, 2024
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vtests This PR produces approved changes to vtest results
Projects
None yet
3 participants