mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 19:23:59 +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) {
|
if (fSelEnd > -1) {
|
||||||
firstSection = song->fMeasures[fSelStart].fPropIdx;
|
firstSection = song->fMeasures[fSelStart].fPropIdx;
|
||||||
lastSection = fSelEnd > fSelStart+1 ?
|
lastSection = fSelEnd==fSelStart ? firstSection : song->fMeasures[fSelEnd-1].fPropIdx;
|
||||||
song->fMeasures[fSelEnd].fPropIdx : firstSection;
|
|
||||||
} else {
|
} else {
|
||||||
firstSection = 0;
|
firstSection = 0;
|
||||||
lastSection = song->fMeasures.back().fPropIdx;
|
lastSection = song->fMeasures.back().fPropIdx;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user