if insert clef to measure after single-measure system with section break, then should not display courtesy clef
Current behavior when inserting clefs to a *measure* (either by dragging from pallete to a measure or by selecting a whole measure and double clicking clef from palette) is to put them the new the *end* of the *previous* measure (except for case when first measure of score).
I would like to change this behavior such that if the measure is the start of a new section, then the new clef should be inserted (or modify currently existing clef) at start of the measure. For example, here are two measures with a sectionbreak in between:
If decide to insert bass clef on first measure of new section, then the new clef is currently inserted at end of previous measure:
But I'd like the new clef to be only inserted at beginning of the measure. This is because section breaks represent a partition in a multi-section score, such as multiple movements or a collection of separate (independent) scores, and so the behavior of adding a clef to the beginning of a section should be the same as adding a clef to the beginning of the score (which is at the *start* of the measure). To determine if a measure is start of a new section, I will add a new boolean test function MeasureBase::isStartOfSection() which checks for existence of a section break on the previous measure or on any measurebase between the previous measure and current measure, or returns false. Also if start of score, then isStartOfSection will return true. This function call will be used instead of measure->prevMeasure() test at: https://github.com/musescore/MuseScore/blob/master/libmscore/undo.cpp#L…