mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 21:15:11 +00:00
GUI: fix occasional crash on select all
This commit is contained in:
parent
b08d248223
commit
36f3641c9f
1 changed files with 4 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
#include "gui.h"
|
||||
|
||||
#include "../ta-log.h"
|
||||
#include "actionUtil.h"
|
||||
|
||||
void FurnaceGUI::startSelection(int xCoarse, int xFine, int y, bool fullRow) {
|
||||
|
@ -187,9 +187,11 @@ void FurnaceGUI::finishSelection() {
|
|||
selStart.xFine=0;
|
||||
}
|
||||
if (e->curSubSong->chanCollapse[selEnd.xCoarse] && selEnd.xFine>=(3-e->curSubSong->chanCollapse[selEnd.xCoarse])) {
|
||||
selEnd.xFine=2+e->curPat[cursor.xCoarse].effectCols*2;
|
||||
selEnd.xFine=2+e->curPat[selEnd.xCoarse].effectCols*2;
|
||||
}
|
||||
|
||||
logV("finish selection: %d.%d,%d - %d.%d,%d",selStart.xCoarse,selStart.xFine,selStart.y,selEnd.xCoarse,selEnd.xFine,selEnd.y);
|
||||
|
||||
e->setMidiBaseChan(cursor.xCoarse);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue