diff --git a/Sources/VLModel.cpp b/Sources/VLModel.cpp index 1c1e2c3..1926ed1 100644 --- a/Sources/VLModel.cpp +++ b/Sources/VLModel.cpp @@ -2038,7 +2038,7 @@ void VLSong::DeleteMeasures(size_t beginMeasure, size_t endMeasure, int mode) if (beginMeasure && fMeasures[beginMeasure-1].fPropIdx == firstProp) ++firstProp; - if (endMeasure < CountMeasures() && fMeasures[endMeasure].fPropIdx == lastProp) + if (endMeasure < CountMeasures() && fMeasures[endMeasure].fPropIdx == lastProp-1) --lastProp; if (lastProp - firstProp == fProperties.size()) ++firstProp;