fix #23131: crash on deletion of selection that includes last measure of score

This commit is contained in:
lasconic 2013-10-11 22:04:59 +02:00
parent c8013fded1
commit 64e543df44

View file

@ -1417,8 +1417,8 @@ void Score::cmdDeleteSelection()
if (selection().state() == SEL_RANGE) {
Segment* s1 = selection().startSegment();
Segment* s2 = selection().endSegment();
int stick1 = s1->tick();
int stick2 = s2->tick();
int stick1 = selection().tickStart();
int stick2 = selection().tickEnd();
Segment* ss1 = s1;
if (ss1->segmentType() != Segment::SegChordRest)