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 #89636 fix #94911 fix #70226 fix #91351: unlink the right staves when deleting a part, or deleting a linked staff. Do not store several times the same staves in linkedStaves #2397

Merged
merged 1 commit into from
Feb 26, 2016

Conversation

lasconic
Copy link
Contributor

No description provided.

@MarcSabatella
Copy link
Contributor

I haven't tried this yet - anything in particular that needs testing about this? Seems almost anything is better than current behavior, so even if some issues remain, it's probably a win. But I do wonder, I had at one point identified one of the problems being that the individual elements themselves still contain links to their counterparts on the deleted staves. See https://musescore.org/en/node/89636#comment-395351. Does this have the effect of removing those extra links, or make them less harmful, or are there still going to be issues?

@lasconic
Copy link
Contributor Author

For the case of deleting a linked staff in the score with linked staves in the part, I believe we now unlink all elements, chords too.
For the case of deleting an excerpt, I'm afraid we don't... it probably needs another look. Maybe we should actually remove the staves from the excerpt partScore.

The issues I fixed were all about linked staves though. Not sure when we use the direct link between elements.

@lasconic
Copy link
Contributor Author

We do use the link between elements in several places... for example when adding a clef before a chord and funny things can happen if one deletes a part, add clef, undo, or add another part etc... since the list still contains linked elements in non existing parts...

@lasconic
Copy link
Contributor Author

I pushed some changes. Now I unlink all elements, spanner, annotation and finally the staff when deleting excerpt.

…when deleting a part, or deleting a linked staff. Do not store several times the same staves in linkedStaves

second take
@lasconic
Copy link
Contributor Author

As @MarcSabatella said, it seems to be better in most of the cases... So I will merge this in master for now. Feel free to hammer it and file bugs.

lasconic added a commit that referenced this pull request Feb 26, 2016
fix #89636 fix #94911 fix #70226 fix #91351: unlink the right staves when deleting a part, or deleting a linked staff. Do not store several times the same staves in linkedStaves
@lasconic lasconic merged commit c6ccf18 into musescore:master Feb 26, 2016
@lasconic
Copy link
Contributor Author

Maybe this bug by marc is a side effect of this change https://musescore.org/en/node/99796

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