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:
Chris Danford
2005-03-29 20:25:14 +00:00
parent 06c846b020
commit cd8b35e801
4 changed files with 44 additions and 10 deletions
+14
View File
@@ -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;