File > Save Selection… leads to corrupt score if selection is not 4/4 and does not start with time signature

• Feb 21, 2016 - 16:11
Reported version
2.1
Type
Functional
Severity
S2 - Critical
Status
closed
Project

1. Open attached score with e666061.
2. Go to page 9 and select the entire last system (starting with rehearsal 21).
3. File > Save Selection…
4. Open saved score.

Result: every single measure of every single staff is corrupted.

Attachment Size
Huron_River_Andante.mscz 320.4 KB
result.mscz 47.71 KB

Comments

Because for saving a selection, you have to "protect", before the selection of the extract (last system, page 9) the time signature, by adding one (so 3/4) at your score, ie at rehearsal 21.
mesure.jpg
See the result: selection.mscz

I don't think it's expected but I can confirm that Save selection is very "literal". Meaning it saves the actual selection, doesn't add time signature or key signature. It just dump the xml representing the current selection in a new mscz file... possibly it should become smarter but there is nothing done currently.

Title "Save Selection…" leads to corrupt score "Save Selection…" leads to corrupt score if selection is not 4/4 and does not include time signature
Title "Save Selection…" leads to corrupt score if selection is not 4/4 and does not include time signature "Save Selection…" leads to corrupt score if selection is not 4/4 and does not start with time signature

Fortunately, those don't cause the same level of problem.

Title "Save Selection…" leads to corrupt score if selection is not 4/4 and does not start with time signature File > Save Selection… leads to corrupt score if selection is not 4/4 and does not start with time signature
Status (old) patch (code needs review) fixed

Fixed in branch 2.1, commit 0299f2d947

fix #99146: File > Save Selection… leads to corrupt score if selection is not 4/4 and does not start with time signature