Fix crash on paste in middle of single property song

This commit is contained in:
Matthias Neeracher 2008-03-20 18:17:03 +00:00
parent 1011966cfd
commit db8433dfe1

View File

@ -1942,7 +1942,7 @@ void VLSong::PasteMeasures(size_t beginMeasure, const VLSong & measures, int mod
++beginProp; ++beginProp;
else else
++propOffset; ++propOffset;
if (fProperties[propAt] == endProp[-1]) if (endProp > beginProp && fProperties[propAt] == endProp[-1])
--endProp; --endProp;
} }
int postOffset = endProp - beginProp; int postOffset = endProp - beginProp;