Skip to content

Commit 8c92eb3

Browse files
committed
fix crash scrolling slightly beyond bottom note
1 parent 2adb909 commit 8c92eb3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

OpenUtau/Controls/TrackBackground.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ private bool IsAltTrack(int track) {
101101
return track % 2 == 1;
102102
}
103103
int tone = ViewConstants.MaxTone - 1 - track;
104+
if (tone < 0) {
105+
return false;
106+
}
104107
return MusicMath.IsBlackKey(tone);
105108
}
106109

0 commit comments

Comments
 (0)