Fixed issue where selection order wasn't taken into account which direction one selected in

This commit is contained in:
Daniel Collin 2013-01-14 22:30:20 +01:00
parent 603ad27579
commit 4befb5f91f

View File

@ -1167,7 +1167,12 @@ static void onRowStep(int step, enum Selection selection)
setRowPos(eclampi(getRowPos() + step, trackData->startRow, trackData->endRow));
if (selection == DO_SELECTION)
viewInfo->selectStartRow = getRowPos();
{
if (step < 0)
viewInfo->selectStartRow = getRowPos();
else
viewInfo->selectStopRow = getRowPos();
}
else
viewInfo->selectStartRow = viewInfo->selectStopRow = getRowPos();
}