Skip to content

Commit

Permalink
fix selection color in TAStudio
Browse files Browse the repository at this point in the history
- closes #4158

fixes bd3f919
  • Loading branch information
Morilli committed Jan 2, 2025
1 parent 7c38810 commit b8baf21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ private void DoSelectionBG(List<RollColumn> visibleColumns, Rectangle rect)
{
var visibleRows = FirstVisibleRow.RangeTo(LastVisibleRow);
int lastRow = -1;
var rowColor = _backColor;
foreach (Cell cell in _selectedItems)
{
if (!cell.RowIndex.HasValue || !visibleRows.Contains(cell.RowIndex.Value) || !VisibleColumns.Contains(cell.Column))
Expand All @@ -520,7 +521,6 @@ private void DoSelectionBG(List<RollColumn> visibleColumns, Rectangle rect)
};
relativeCell.RowIndex -= CountLagFramesAbsolute(relativeCell.RowIndex.Value);

var rowColor = _backColor;
if (QueryRowBkColor != null && lastRow != cell.RowIndex.Value)
{
QueryRowBkColor(cell.RowIndex.Value, ref rowColor);
Expand Down

0 comments on commit b8baf21

Please sign in to comment.