musescore / musescore/MuseScore
Corruption / empty measures when pasting measure repeat non-measure-aligned
@cbjeukendrup is already working on this.
Since Aug 24, 2024.
- Dominant language
- C++
- Stars
- 15.1k
- Forks
- 3.3k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 91
Description
Issue type
File corruption
Description with steps to reproduce
- Create score
- Add some quarter rests for some measures (or anything to subdivide the measure)
- Create measure repeat somewhere
- Copy the measure repeat
- Select a quarter rest not at the start of the measure
- Paste the measure repeat
-> measure becomes empty, and the measure after it will contain some rests
Alternative way to reproduce it: paste a measure repeat into a measure that has a different time signature than the measure where the measure repeat comes from.
Expected behaviour: I think pasting measure repeats should behave as pasting a whole-measure rest, possibly unless the measure repeat fits exactly into the target measure (and is being pasted in a measure-aligned position).
Supporting files, videos and screenshots
https://github.com/user-attachments/assets/46fdab50-973b-4709-9548-5fdcc8d7644a
What is the latest version of MuseScore Studio where this issue is present?
4.4 and master
Regression
Yes, this used to work in MuseScore 3.x and now is broken
Operating system
*
Additional context
Demystified version of https://github.com/musescore/MuseScore/issues/23742, originally discovered by @ElixirAmongUs
Checklist
- This report follows the guidelines for reporting bugs and issues
- I have verified that this issue has not been logged before, by searching the issue tracker for similar issues
- I have attached all requested files and information to this report
- I have attempted to identify the root problem as concisely as possible, and have used minimal reproducible examples where possible
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.