Crash opening score if text line is anchored to a multi-measure rest

• Jan 29, 2014 - 22:37
Type
Functional
Severity
S2 - Critical
Status
closed
Project

STEPS:

- score with some rests
- create a text line that spans them
- Style -> General -> create multi-measure rests
- Save
- Close
- Open

RESULTS:
Crash due to unprotected access to sys in SLine::linePos

This can be avoided by checking for NULL sys in this function (I'll try to submit this fix).

There is a follow-on bug which is that the text line will not display if one of its ends is in a multi-measure rest, but you can only get there if this crash is fixed.


Comments

I'm not sure what the settings should be when submitting a patch, sorry.

How do you want me to assign it?

Thanks,
Z

If you'ore using QtCreator, there is a configu file you can download right there on the coding rules page. It covers a good chunk of it. I think I get continuation lines wrong, but most other things work well if you remember where to put the opening brace (at end of statement and to start class def, line by itself for function)