"Copy Lyrics To Clipboard" feature: copy-paste lyrics, if single or in first staff, no longer works

• Jul 31, 2019 - 17:40
Reported version
3.2
Type
Functional
Frequency
Many
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
Yes
Project
  1. any multi-voice score will do
  2. issue the command to copy lyrics to clipboard
  3. check the result and you'll see tht some voice(s) are missing (see forum link: https://musescore.org/en/node/292822#comment-937158)

Comments

From scratch:

  • First scenario

1) Load this test file (for Soprano): soprano 1.mscz
2) Tools -> Copy Lyrics to Clipboard
3) Open a word processor (say LibreOffice) -> Paste

Result: nothing

  • Second scenario

1) Add a second soprano (and Lyrics): soprano 1 and 2.mscz
2) Again steps #2 and 3

Result: paste works but only for the second soprano.

It will be the same (with three and four staves, eg Four soprano.mscz )
lyrics.jpg

Conclusion: With one single staff, the operation fails. With two and more staves: paste works. But the first staff continues to fail.

Title MuS doesn't always copy all the voices' lyrics to clipboard "Copy Lyrics To Clipboard" feature: copy-paste lyrics, if single or/and first staff, no longer works
Regression No Yes
Title "Copy Lyrics To Clipboard" feature: copy-paste lyrics, if single or/and first staff, no longer works "Copy Lyrics To Clipboard" feature: copy-paste lyrics, if single or in first staff, no longer works
Workaround No Yes

Easiest workaround: clicking twice on 'Copy Lyrics To Clipboard' before paste in a word processor

It's clearly related. Especially since the workaround works the same way.
So, we could write that it is a duplicate, since this current issue was found by entering verse1. But I would rather say that these are two different scenarios of the same issue. To be sure, it may not be pointless to leave them both open?
So, to be seen, according to your own opinion.

Status PR created fixed

Fixed in branch master, commit c004c48906

_fix #292830: fix copying lyrics to clipboard

Was broken after 1a6058f9a1245772d695fd5e9068c3139ea15589.
Score::extractLyrics() depends on Measure::playbackCount values which
are used internally by RepeatList. A quick way to fix the issue with
extracting lyrics (implemented in this commit) is to force repeat list
to be computed before resetting playbackCount variables inside
extractLyrics().

Fix version
3.3.0