fix ClearRangeForTrack splits hold notes when given a degenerate range

This commit is contained in:
Glenn Maynard
2005-07-30 07:08:50 +00:00
parent 4fe46bd2a4
commit fbac911c8d
+5
View File
@@ -45,6 +45,11 @@ void NoteData::ClearRangeForTrack( int rowBegin, int rowEnd, int iTrack )
return;
}
/* If the range is empty, don't do anything. Otherwise, an empty range will cause
* hold notes to be split when they shouldn't be. */
if( rowBegin == rowEnd )
return;
iterator begin, end;
GetTapNoteRangeInclusive( iTrack, rowBegin, rowEnd, begin, end );