Crash if adding slur to note which has gracenote, if this note is in the first chordrest element in staff

• Jan 11, 2018 - 15:21
Reported version
3.0
Type
Functional
Severity
S2 - Critical
Status
closed
Project

1) untitled score
2) add quarter note, add grace (before or after)
3) select one of the noteheads
4) add slur by pressing "s" oder selecting the menu entry
-> musescore crashes


Comments

Status (old) patch (code needs review) fixed
Status fixed

Fixed in branch master, commit 86b31ae353

fix #268357: Crash if adding slur to note which has gracenote, if this note is in the first chordrest element in staf

First note (tick == tick2 == 0) was not processed correctly during slur
spanners calculations. It led to not setting layoutSystem for the
created slur.