Fixed click to select for the header bar.

This commit is contained in:
Pietro Gagliardi 2014-10-20 22:35:37 -04:00
parent b4695182de
commit 0dd4a07456
1 changed files with 1 additions and 0 deletions

View File

@ -127,6 +127,7 @@ static void selectItem(struct table *t, WPARAM wParam, LPARAM lParam)
y = GET_Y_LPARAM(lParam);
h = rowHeight(t);
y += t->firstVisible * h;
y -= t->headerHeight;
y /= h;
t->selected = y;
if (t->selected >= t->count)