diff options
Diffstat (limited to 'src/input.c')
-rw-r--r-- | src/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input.c b/src/input.c index 20551a6..4461c8b 100644 --- a/src/input.c +++ b/src/input.c | |||
@@ -52,7 +52,7 @@ static void GetTableRowColAtXy( | |||
52 | for (col = 0; (col < table->cols) && (x > table->widths[col]); ++col) { | 52 | for (col = 0; (col < table->cols) && (x > table->widths[col]); ++col) { |
53 | x -= table->widths[col]; | 53 | x -= table->widths[col]; |
54 | } | 54 | } |
55 | // 0 is the header and we want to map the first row to 0, so -1. | 55 | // 0 is the header, and we want to map the first row to 0, so -1. |
56 | row = table->offset + | 56 | row = table->offset + |
57 | ((p.y - widget->rect.y) / g_ui.font->header.glyph_height) - 1; | 57 | ((p.y - widget->rect.y) / g_ui.font->header.glyph_height) - 1; |
58 | // Out-of-bounds check. | 58 | // Out-of-bounds check. |