From b4f861a8d524cf65f263325119d35b15a694973f Mon Sep 17 00:00:00 2001 From: sigatrev Date: Mon, 13 Apr 2015 18:51:02 -0500 Subject: [PATCH] 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. --- src/NoteData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NoteData.cpp b/src/NoteData.cpp index f7c6f2f7d7..1c9cbd305a 100644 --- a/src/NoteData.cpp +++ b/src/NoteData.cpp @@ -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 ) {