How to reproduce:
Try to open e.g. Saltarello example, select first measure and set key signature to C#.
Result:
Measure does not extend and some notes are shifted into the next measure.
Expected result:
Measure width is extended properly to contain all the notes.