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

More tie refinements #20161

Merged
merged 1 commit into from Nov 28, 2023
Merged

Conversation

mike-spa
Copy link
Contributor

@mike-spa mike-spa commented Nov 23, 2023

Resolves: #19532 (a bunch of tie layout cases - see vtests).

Also, there used to be a sqrt operation in Tie::computeMidThickness which was causing performance issues. Now I've changed the formula to a different one so it also fixes that for free.

if (tieLengthInSp > shortTieLimit) {
m_midThickness = normalThickness;
} else {
const double A = 1 / (shortTieLimit - minTieLength);
Copy link
Contributor

Choose a reason for hiding this comment

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

You should check if shortTieLimit and minTieLength are equal

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@RomanPudashkin this is ok now, I've put the check a few lines above :)

@oktophonie oktophonie added the vtests This PR produces approved changes to vtest results label Nov 24, 2023
@RomanPudashkin RomanPudashkin merged commit 483969f into musescore:master Nov 28, 2023
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
Development

Successfully merging this pull request may close these issues.

Refinements checklist for new Tie features
3 participants