mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
GUI: fix cursor going out of bounds on paste
This commit is contained in:
parent
bcade6931a
commit
ed6820ac46
1 changed files with 2 additions and 1 deletions
|
@ -554,6 +554,7 @@ void FurnaceGUI::doPaste(PasteMode mode) {
|
||||||
}
|
}
|
||||||
if (settings.cursorPastePos) {
|
if (settings.cursorPastePos) {
|
||||||
cursor.y=j;
|
cursor.y=j;
|
||||||
|
if (cursor.y>=e->song.patLen) cursor.y=e->song.patLen-1;
|
||||||
updateScroll(cursor.y);
|
updateScroll(cursor.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue