Skip to content

Conversation

mathesoncalum
Copy link
Contributor

Resolves: #23492

As suggested in the original issue thread, the main problem here is that we don't message the user when partially copying a tuplet or tremolo between notes (see Selection::canCopy and related methods) - we just silently fail. The changes in this PR ensure that warning messages are displayed for these cases (see below, a copy pass maybe needed).

partialtuplet partialtremolo ...

The other part of this can be traced all the way back to #5486. There is actually a warning dialog when trying to paste into a tuplet, but the changes in that PR mean that we skip it whenever we try to paste to the first ChordRest in a tuplet. The reasoning there is that we might want to paste from the start of the tuplet (and overwrite the tuplet in the process).

Chord* chord = toChord(cr);
if (chord->tremoloTwoChord()) {
rv = chord->tremoloTwoChord()->chord2() == chord;
return MsError::MS_NO_ERROR;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is a non-problematic tuplet, we might still need to check for a problematic tremolo. I'm thinking of cursed edge cases like this:
Image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated now 👍

@mathesoncalum mathesoncalum force-pushed the 23492-partial_copy_errors branch from ee1d4f2 to d83dd1f Compare October 7, 2025 08:41
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.

Copy of range/list selection in a tuplet does not work and does not message user

2 participants