mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-26 22:43: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) {
|
||||
cursor.y=j;
|
||||
if (cursor.y>=e->song.patLen) cursor.y=e->song.patLen-1;
|
||||
updateScroll(cursor.y);
|
||||
}
|
||||
|
||||
|
@ -1003,4 +1004,4 @@ void FurnaceGUI::doRedo() {
|
|||
}
|
||||
|
||||
redoHist.pop_back();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue