GUI: fix cursor going out of bounds on paste
This commit is contained in:
parent
bcade6931a
commit
ed6820ac46
|
@ -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 New Issue