Skip to content

First clef and key signature not redrawn after Replace Instrument #34268

Description

@mercuree

Issue type

Engraving bug (incorrect score rendering)

Description with steps to reproduce

The first clef and key signature are not redrawn if the initial measures contain a multi-measure rest and the instrument is replaced.

  1. Create empty score with Trumpet in B♭
  2. fill all measures with notes after measure 4
  3. Turn on multi-measure rest
  4. Replace Trumpet with Trombone
  5. First clef and key signature don't change
  • The issue is present in all versions of Musescore 4 (at least since Musescore 4.0.2)
  • The issue is fixed after toggling multi-measure rests or reopening the project.

Supporting files, videos and screenshots

clef_redrawn_bug.mp4

In which versions of MuseScore Studio is this issue present?

MuseScore Studio version (64-bit): 4.7.4-260706075, revision: github-musescore-musescore-7688c00

Regression

No.

Operating system

windows 10

Additional context

This issue is based on a report from https://musescore.org/en/node/394837

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

Metadata

Metadata

Labels

P2Priority: MediumengravingShape, position, or ability to notate musical symbols & text in the score

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions