Copying Repeat measure into different time signature corrupts score

Open
#20,392 2 comments 0 reactions 1 assignee View on GitHub

@cbjeukendrup is already working on this.

Since Dec 10, 2023.

Assessment

This issue has not been assessed yet.

Description

corruption needs info regression MS3 UX/interaction
Issue type

File corruption

Bug description

When copying a 'repeat measure' (%) from one bar to another of a different time signature, the bar - and as a result - the file gets corrupted.

Steps to reproduce
  1. Create a new file with at least one instrument.
  2. place a 'repeat measure' item (from the Pallets menu at the start of the score
  3. somewhere after the location of the 'repeat measure' add a time signature change
  4. copy the 'repeat measure' and paste after the time signature change.
  5. The score should now be currupted.
Screenshots/Screen recordings

https://github.com/musescore/MuseScore/assets/54374032/7917803c-d274-4458-ada7-0959e7517299

MuseScore Version

OS: Windows 10 Version 2009 or later, Arch.: x86_64, MuseScore version (64-bit): 4.2.0-233420505, revision: github-musescore-musescore-cc2aa2b

Regression

OK in 3.6, broken from 4.0 on

Operating system

Windows 10

Additional context

No response

Dominant language
C++
Stars
15.1k
Forks
3.3k
Avg merge
2d 2h
Merged PRs (30d)
91

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from musescore/MuseScore

All issues in musescore/MuseScore

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.