Skip to content

Conversation

@miiizen
Copy link
Contributor

@miiizen miiizen commented Apr 16, 2025

Resolves: #27718

There is only one repeat list for all parts, so we need to find the master measure when comparing to repeat list measures.

@ghost ghost requested a review from mike-spa April 16, 2025 12:44
@miiizen miiizen requested a review from DmitryArefiev April 16, 2025 13:09
@DmitryArefiev DmitryArefiev removed their request for review April 16, 2025 14:58
@DmitryArefiev DmitryArefiev self-assigned this Apr 16, 2025
@DmitryArefiev
Copy link
Contributor

Tested #27718 on Win10, Mac13.7.2 - FIXED

&& firstMasterMeasureBase->isMeasure() ? toMeasure(firstMasterMeasureBase) : nullptr;
const MeasureBase* secondMasterMeasureBase = master->measure(secondMeasure->index());
const Measure* secondMasterMeasure = secondMasterMeasureBase
&& secondMasterMeasureBase->isMeasure() ? toMeasure(secondMasterMeasureBase) : nullptr;
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't this be more immediate by doing e.g. master->tick2measure(firstMeasure->tick())? It should also be much faster after your work on tick indexing

Copy link
Contributor

Choose a reason for hiding this comment

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

Otherwise looks good, feel free to merge after this small change 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, definitely! I'd actually prefer to be overly cautious and make these changes in 4.6 as tick indexing won't be in the patch. This method of accessing measures has been fine for findFollowing/PreviousRepeatMeasures and I'd hate to break something now

@mike-spa mike-spa merged commit 1ebb637 into musescore:master Apr 17, 2025
11 checks passed
@miiizen miiizen mentioned this pull request Apr 17, 2025
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.

Unable to create regular tie between measures in part

3 participants