Crash by deleting vertical(s) frame(s) in first page of large scores

• Jul 19, 2018 - 19:22
Reported version
3.0
Type
Functional
Severity
S2 - Critical
Status
closed
Project

GIT commit: 5838f84 / Windows10

1) Defaut "Untitled" score
2) Press "I " -> add (count) 12 staffs -> Ok (so, total 13)
Result: a vertical frame is created in the first page (ie the title frame toggles to a new first page)

The test file at this step: 13 staves.mscz

3) Select and cut the vertical frame

Result: surprise: another vertical frame is always here, which jumps a bit higher (EDIT: or the first deletion fails? Or something like that?)

4) Select and cut this second (?) vertical frame

Result: crash

1) Select the first measure -> insert a vertical frame

Same result: there is two (?) vertical frames, or the first removal fails -> Cut twice -> crash


Comments

The vertical frame that remains after the frame is deleted is not part of the score. It has no parent system. It will go away if you invoke the "Re-Layout" command from the "Debug" menu. We can force a complete relayout from within Score::removeElement() if the removal of a vertical frame leaves no more systems on the page.