Key signature change to C major adds extra space after the clef in error

• Oct 30, 2020 - 12:18
Reported version
3.5
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.5.2.311459983, revision: 465e7b6

Open the attached score. Look at the start of system 3 (M9). Here the key sig. changes to C major. Extra space has been added, in error, between the clef and the time sig.

Contrast this with the start of the piece which is also in C major. Here the space between the clef and time sig. is as expected.

Attachment Size
gap_clef_time_sig.mscz 6.78 KB

Comments

Sometimes there is an actual element there representing the C major key signature, sometimes there isn't, that probably explains the difference. Usually none is needed at the beginning of the score, one is for a key change. But we should find a way to skip the spacing if the key signature is empty.

A related issue: Create a A Major key signature in measure one by dragging the KeySig to that measure 1. Next, delete it by dragging a C Major KeySig to measure one. Now we see a similar phenomena:
Screenshot_20201104_200334.png

Now save the file, close the score and reload the file. The KeySig is gone and the TimeSig is shifted to the left:
Screenshot_20201104_200522.png

Status PR created fixed

Fixed in branch 3.x, commit c8b7f22b57

_Fix #312393 - Key signature change to C major adds extra space after the clef in error

Consider a segment invisible if all elements are invisible or have a width of zero._

Fixed in branch 3.x, commit fc5093290b

_Merge pull request #6811 from njvdberg/issue-299196-invisible-timesig-spacing

Fix #299196 Fix #312393 - Missing space between key signature and first note if time signature is hidden_

Fixed in branch 3.6alpha, commit fc5093290b

_Merge pull request #6811 from njvdberg/issue-299196-invisible-timesig-spacing

Fix #299196 Fix #312393 - Missing space between key signature and first note if time signature is hidden_

Fix version
3.6.0