mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 11:14:00 +00:00
Don't crash in selection extension
This commit is contained in:
parent
920e7aa0fd
commit
d3df79a27e
|
@ -88,8 +88,7 @@ static VLSong sPasteboard;
|
|||
|
||||
if (fSelEnd > -1) {
|
||||
firstSection = song->fMeasures[fSelStart].fPropIdx;
|
||||
lastSection = fSelEnd > fSelStart+1 ?
|
||||
song->fMeasures[fSelEnd].fPropIdx : firstSection;
|
||||
lastSection = fSelEnd==fSelStart ? firstSection : song->fMeasures[fSelEnd-1].fPropIdx;
|
||||
} else {
|
||||
firstSection = 0;
|
||||
lastSection = song->fMeasures.back().fPropIdx;
|
||||
|
|
Loading…
Reference in New Issue
Block a user