Crash on select on score with slur ending on rest
Ubuntu 14.04, GIT commit: 6bba0d4
I've seen a coupple variations on what appears to be the same crash today. Here is an easy-to-reproduce case.
1) load attached score (created in 1.3, downloaded from musescore.com)
2) select all
The crash occurs in Spanner::endChord(), and it's an assert failure - the endElement in this case is a rest, not a chord. But I've also seen cases where it is 0 as a result of the assignment of nullptr a couple of lines above (meaning it had been a rest up until then). Those cases happened when I wasexperimenting with things in the code so maybe I was doing something incorrectly. But the crash as described above should happen without my code.
In all cases, this is being called from Selection::updateSelectedElements(), which is called from at the end of Score::pasteStaff().