Multiple chord symbols attached to same note do not copy as part of range

• Nov 30, 2019 - 02:34
Reported version
3.2
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

I can not copy and paste alternative chord symbols.


Comments

Title Not be able to copy alternative chord symbols Multiple chord symbols attached to same note do not copy as part of range
Severity S4 - Minor S3 - Major

Individual chords symbols - alternate or not - copy fine when I try it, and so do multiple chord symbols selected as a list. However, when copying a range selection, if there are multiple chord symbols on the same note (alternate or not), only one copies. Is this what you mean? If not, please attach your score and explain your problem in more detail.

In reply to by Marc Sabatella

What I wanted to say is what you say. Since the same chord progression continues multiple times, I wanted to copy it. Only one copy of the part where two chord symbols were entered in one note was copied.
As you say, “alternative or not” doesn't matter.
I am convinced that you have taught me that if you enter two chord symbols in one note, only one will be copied.
Thank you very much.

I believe this is an unintended side effect of the code designed to replace chord symbols already present in the destination - after the first chord is pasted, it is now seen as already in the destination, and thus gets replaced by the second. I guess we need to somehow detect that these were just added. We can't delete all the chord symbols before we start, because the idea was to only replace chord symbols where actually necessary.

Status PR created fixed

Fixed in branch master, commit 93ac2c5b85

_fix #297883: multiple chord symbols not copied

We have code to replaced existing chord symbols in the destination
when copying and pasting.
Unfortunately, if there are multiple chord symbols to paste on a tick,
that same code causes each chord symbol to replace the one just pasted.
End result is only the last chord symbol is preserved.
This change uses a container pastedHarmony to track the chords symbols
as we paste them, so we can check and not delete them later._

Fix version
3.4.0