Bug fix for Qt TAS editor allowing cross columns during drag with alt held.

This commit is contained in:
mjbudd77 2021-12-22 20:47:13 -05:00
parent f3fd0a8016
commit 772901cfa7
1 changed files with 1 additions and 5 deletions

View File

@ -4963,16 +4963,12 @@ void QPianoRoll::updateDrag(void)
{
// perform hit test
row_index = rowUnderMouse;
//if (row_index < 0)
//{
// row_index = ListView_GetTopIndex(hwndList) + (info.pt.y - listTopMargin) / listRowHeight;
//}
// pad movie size if user tries to draw pattern below Piano Roll limit
if (row_index >= currMovieData.getNumRecords())
{
currMovieData.insertEmpty(-1, row_index + 1 - currMovieData.getNumRecords());
}
column_index = columnUnderMouse;
column_index = columnUnderMouseAtPress;
if (row_index >= 0 && column_index >= COLUMN_JOYPAD1_A && column_index <= COLUMN_JOYPAD4_R)
{