ancient NoteData::ClearRangeForTrack bug fix

When clearing a range, if the first note in any track in the range was a
hold note, it would place it a hold the end of the cleared range.
This commit is contained in:
sigatrev
2015-04-13 18:51:02 -05:00
parent b04e7faec6
commit b4f861a8d5
+1 -1
View File
@@ -89,7 +89,7 @@ void NoteData::ClearRangeForTrack( int rowBegin, int rowEnd, int iTrack )
{
NoteData::TrackMap::iterator prev = lEnd;
--prev;
TapNote tn = lBegin->second;
TapNote tn = prev->second;
int iRow = prev->first;
if( tn.type == TapNoteType_HoldHead && iRow + tn.iDuration > rowEnd )
{