fix "can't paste from clipboard with only one row in clipboard"
fix "can't Undo to a blank NoteField" clamp paste area so that pasting past the maximum beat is impossible
This commit is contained in:
@@ -387,6 +387,20 @@ bool NoteData::IsHoldNoteAtBeat( int iTrack, int iRow, int *pHeadRow ) const
|
||||
return bFoundHead;
|
||||
}
|
||||
|
||||
bool NoteData::IsEmpty() const
|
||||
{
|
||||
for( int t=0; t < GetNumTracks(); t++ )
|
||||
{
|
||||
int iRow = -1;
|
||||
if( !GetNextTapNoteRowForTrack( t, iRow ) )
|
||||
continue;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
int NoteData::GetFirstRow() const
|
||||
{
|
||||
int iEarliestRowFoundSoFar = -1;
|
||||
|
||||
Reference in New Issue
Block a user