Changing time signature with two differents clefs in linked staves causes false "transposition"
Nightly November 5 (0ff91aa) / Windows 7
1. Open "My First Score"
2. "I" -> select staff1 -> Add linked staff (bass clef) ->Ok
3. Fill the first measure with four quarter notes
4. Drag and drop the 6/8 Timesig in the first measure
Result: the first staff is wrong. It seems to "clone" the position of the notes of the second staff.
5. Now, make Undo, followed by Redo:
Result: No changing in the first staff, but now the second staff is also wrong. It seems to clone the position of the notes of the "initial" first staff.
Additionnal notes: the results are correct if the clefs are the same with linked staves (two Treble clef etc.)
But it occurs elsewhere that in "My first score" (with same cause)
Example: Create a score for piano:
- Remove the second staff (bass clef) -> add a linked staff (bass clef). So, the same configuration (two differents clefs, linked staves, change time signature) is back, with the same wrong result.
Attachment | Size |
---|---|
Expected.jpg | 15.32 KB |
First result.jpg | 13.9 KB |
Undo Redo.jpg | 14.67 KB |
Comments
This issue appeared between August 16 (commit 4f9dc38) and August 17 (commit 01b6a81)
Some "ideas":
- https://github.com/musescore/MuseScore/commit/49e185b41342ec5b84888048e…
- https://github.com/musescore/MuseScore/commit/8fff1902785bef71833b635ff…
- https://github.com/musescore/MuseScore/commit/1dcdd1037d
The problem fixes itself for a given measure as soon as you enter a new note into the measure or change pitch of an existing note. It also fixes itself for the whole score on save/reload.
I am guessing there is an issue with not calling Measure::updateNotes() somewhere that we should (or calling it somewhere we shouldn't), but it gets fixed on the next call.
Fixed in 4196bd1ca9
Automatically closed -- issue fixed for 2 weeks with no activity.