CRASH album append score without initial clef on first measure
album_clef-first-meas-02.mscx starts without an initial clef on 2nd staff:
When joined, the missing initial clef in 2nd staff seems to cause a crash on 2.0.3 and master a65f06b. Replication steps:
- File->album
- add scores "album_clef-first-meas-01.mscx" & "album_clef-first-meas-02.mscx"
- join scores
Result: CRASH
Probably a result of my initial clef album joining code not taking into account this unusual situation. But I guess since musescore permits such a score to be saved, the album join code should account for it.
Attachment | Size |
---|---|
album_clef-first-meas-01.mscx | 6.02 KB |
album_clef-first-meas-02.mscx | 8.09 KB |
Comments
Fixed by simply testing if initialClef is != 0.
https://github.com/musescore/MuseScore/pull/2531
Fixed in branch master, commit 204b0ec91a
fix #105641 no initial clef
Make sure to test initialClef is non-null before trying to dereference.
Fixed in branch master, commit 71aee98b3f
Merge pull request #2531 from ericfont/105641-no-initial-clef
fix #105641 no initial clef
Fixed in branch 2.0.4, commit 61fae4941e
fix #105641 no initial clef
Make sure to test initialClef is non-null before trying to dereference.
Automatically closed -- issue fixed for 2 weeks with no activity.