-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #275133: fix a crash caused by invalid selection state on single …
…element paste
- Loading branch information
Showing
1 changed file
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This caused a usability regression, see https://musescore.org/en/node/288343. If at all possible, we should preserve the selection. I suspect it's only invalid if we replace a note with another note, or maybe pasting an articulation on top of another or some special case we allow for?) How about if we skip the deselect here, but then, a few lines later when dropping the element, check if the type of element we are dropping matches that of the target, and then and only then remove the target from the selection, replacing it with the dropped element?