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 crash on deleting timesig #26701

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

miiizen
Copy link
Contributor

@miiizen miiizen commented Feb 24, 2025

Resolves: #26673

@miiizen miiizen marked this pull request as ready for review February 24, 2025 08:11
@oktophonie oktophonie requested a review from mike-spa February 24, 2025 10:39
TimeSig* ts = toTimeSig(s->element(e->track()));
TimeSigPlacement timeSigPlacement = ts->style().styleV(Sid::timeSigPlacement).value<TimeSigPlacement>();
EngravingItem* el = s->element(e->track());
TimeSig* timeSig = el ? toTimeSig(el) : nullptr;
Copy link
Contributor

Choose a reason for hiding this comment

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

FWIW, I believe calling toTimeSig with nullptr is okay, since it does a null check internally. That would allow for a slight simplification. But it's not important.

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.

Deleting/changing time signature with courtesies at repeats crashes the app
3 participants