mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 11:14:00 +00:00
Fix calculation of property indices on deletion
This commit is contained in:
parent
864f07848c
commit
e44dd7d554
|
@ -2038,7 +2038,7 @@ void VLSong::DeleteMeasures(size_t beginMeasure, size_t endMeasure, int mode)
|
||||||
|
|
||||||
if (beginMeasure && fMeasures[beginMeasure-1].fPropIdx == firstProp)
|
if (beginMeasure && fMeasures[beginMeasure-1].fPropIdx == firstProp)
|
||||||
++firstProp;
|
++firstProp;
|
||||||
if (endMeasure < CountMeasures() && fMeasures[endMeasure].fPropIdx == lastProp)
|
if (endMeasure < CountMeasures() && fMeasures[endMeasure].fPropIdx == lastProp-1)
|
||||||
--lastProp;
|
--lastProp;
|
||||||
if (lastProp - firstProp == fProperties.size())
|
if (lastProp - firstProp == fProperties.size())
|
||||||
++firstProp;
|
++firstProp;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user