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 #51391: crash on clone of null lyric #1900

Merged
merged 1 commit into from
Mar 19, 2015

Conversation

MarcSabatella
Copy link
Contributor

Not sure I'm ready to merge this, but I wanted to see the result of Travis tests. I'm still sorting out the relationship between cloneStaff and cloneStaff2. Although the code is very similar, it seems their purpsoes are very different. cloneStaff gets called when adding a linked staff to a score, cloneStaff2 gets called when rewriting a linked part after a time signature change. It also seems a good chunk of cloneStaff2 is not relevant - annotations in particular are not present in the source, as they are handled separately.

The code involving lyrics specifically I added a few months back, and I think I should have added it to cloneStaff only, but didn't understand the purpose of cloneStaff2 so I added it there too. The result is that rewriting time signatures deletes lyrics in parts. I can't see any reason to keep that code.

lasconic added a commit that referenced this pull request Mar 19, 2015
fix #51391: crash on clone of null lyric
@lasconic lasconic merged commit a8d3a55 into musescore:master Mar 19, 2015
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