fix #67031: incomplete glissando copied #2101
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Copy/paste of an incomplete gliss - eg, if the start note was part of selection but end note was not - left you with an "orphaned" forward gliss that wouldn't render but also wouldn't allow a new gliss to be added. See issue report https://musescore.org/en/node/67031 and original discussion in https://musescore.org/en/node/66881
My change here checks for and removes such one-ended glissandi.
@mgavioli : does this change look good to you? It does seem to work for the case at hand, and ordinary copy/paste also still works. Not sure if there is some other case where it would be harmful to delete a glissando with no end note here. Also, I don't see any bad effects from copy and paste of the end note of a gliss without the start, so I didn't add code to deal with that.