musescore / musescore/MuseScore

A horizontal frame with width=0 is not saved correctly

Open
#21,233 2 comments 0 reactions 2 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Issue type

Engraving bug (incorrect score rendering)

Bug description

A horizontal frame with a width = 0 has its width not correctly saved.
Setting the width to 0 is possible and rendered correctly. Nevertheless after saving and reopening, the width is back to its default value: 5 (and rendered accordingly).

Steps to reproduce
  1. Add an horizontal frame in the score
  2. Set its width to 0
  3. Save and close the score.
  4. Reopen the score
  5. The frame has a width of 5
Screenshots/Screen recordings

Score with 2 frames:

  1. between measure 1-2. With a zero width on the main score, and a non-zero width on the part.
  2. between measure 2-3. With a non-zero width on the main score, and a zero width on the part.
As saved/Expected
Main score

SpacerScoreExpected

Part

SpacerPartExpected

As reopened
Main score

SpacerScoreResult

Part

SpacerPartResult

MuseScore Version

4.2.1

Regression

Yes, this used to work in MuseScore 3.x and now is broken

Operating system

Windows10

Additional context

Regression:

  • It used to work with MU 3.6
  • A correct 3.6 file is not loaded correctly with MU4

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.