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
+1
View File
@@ -123,6 +123,7 @@ public:
//
// statistics
//
bool IsEmpty() const;
int GetFirstRow() const; // return the beat number of the first note
float GetFirstBeat() const { return NoteRowToBeat( GetFirstRow() ); }
int GetLastRow() const; // return the beat number of the last note