Bad layout of mmrest at start of system
1) load attached file
2) view bari sax part
3) change pitch of last note
Result: mmrest is laid out entirely wrong - no clef or key, too narrow, and next measure appears to start after the point where the mmrest should be:
Oddly, though, if you then go back to the score, do a "save as" and use MSCX file type, then close the score, load that, and repeat the experiment, it works.
This has been frustrating trying to track down. I can reproduce with this score (excerpted from a larger one) but not if I try to create a similar one from scratch, and I still don't really understand what is happening. I know something is going wrong when we do an extra layout to generate the thumbnail for the MSCZ. The mmrest is having its header removed here:
That's because curHeader is false (which it shoudn't be) and then the width is being set to 0 a few lines later because curWidth is 0 (which it shouldn't be). It seems these are set based on the underlying measure, not the mmrest.
I think it has to do with something I remember about disabling mmrests temporarily when saving, although I can't find this (only something about temporarily showing invisible staves if mmrests are enabled). But somehow things are getting out of sync - like we do half a layout with mmrests off then half with them on. Which makes no sense at all. As I said, this has been frustrating. Still working on it, but wanted to get this down.