Cannot copy and paste stickings in range or list selection

• Nov 23, 2019 - 03:22
Reported version
3.3
Priority
P1 - High
Type
Functional
Frequency
Few
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

1) Select an already placed sticking
2) Copy it
3) Paste it to another note
4) It does not paste the sticking


Comments

Status PR created fixed

Fixed in branch master, commit d6a27f86a3

_fix #297514: Cannot copy and paste stickings

when handling paste, a switch statement is used on dropElement.type() (result is of type ElementType). Before this commit, there was no case for ElementType::STICKING, and paste wouldn't work (default behavior)._

The fix is good for single stickings, but still copy/paste of a range selection leaves out the stickings, and they don't copy as a list either.

Frequency Few Many

Curious, as Marc pointed out the fix is only for single stickings won't copy/paste with a range selection, does a new ticket need to be made? I don't mind entering a single sticking, it's the massive re-entry for multiple parts that's tedious and time consuming.

Status PR created fixed

Fixed in branch 3.x, commit 609a77fc97

_fix #297514: copy sticking with range, stickng & stafftext as list

Resolves: https://musescore.org/en/node/297514

When the sitcking feature was implemented,
it introduced a new new type that needed to be handled
in a bunch of different places throughout the code.
One of the places that was missed was the copy/paste code.
Code was added a while later to handle copy/paste
of individual stickings from note to note,
but we still didn't handle stickings within range selection
or copy/paste of list selections.

Range selection was just a missing test for Sticking tag in pasteStaff.
List selection required adding the handler to both the building
and the processing of the symbol list.
Handling is just like articulations, but with parent of segment
instead of chordrest.
Rests are skipped during paste just as for articulations.
Since staff text is virtually the same thing (segment annotation),
and I also have wanted this to paste as list,
it was just as easy to handle both at once here._

Fix version
3.5.1