if insert new clef to a measure that already has clef at *start* of measure, then old clef shouldn't remain
E.g. attached test-drag-clef-to-measure-with-clef-at-start-of-measure.xml has two measures of bass clef, where the bass clef in the second measure is part of
If drag a treble clef onto the second measure (or if select that *measure* and double click on treble clef from palette), then the result is in current 2.0.2 release and 35b9f49 will still render the old bass clef, even thought the the rest of the score pitches and newline courtesy clefs will reflect the newly inserted treble clef:
Note how position of the middle C is determined based on the treble clef. Since this old clef at the beginning of meas 2 is being ignored, I think that old clef should be removed from the score. Here is my expected desired behavoir:
Note: if joining two scores with, then the resulting album will suffer from this issue, since the first measure of the second movement will have it's clef at the *start* of its first measure.
Also another way to get this behavior is to insert a clef before a measure N, then insert a clef at beginning of a measure N+2, and then delete measure N+1. The result score will have the two clefs side by side before and after the barline, but the clef on the right of the barline is rendered but ignored as far as pitches are concerned, and dragging a new clef to the measure on the right will not get rid of the measure.