fix: fix spreadsheet column click code

This commit is contained in:
2026-04-10 17:42:48 +02:00
parent b72bdca3a2
commit 00ee161962
+1 -1
View File
@@ -128,7 +128,7 @@ bool hit_cell(int mx, int my, int* out_col, int* out_row) {
int x = ROW_HEADER_W; int x = ROW_HEADER_W;
for (int c = 0; c < MAX_COLS; c++) { for (int c = 0; c < MAX_COLS; c++) {
if (content_x >= x - ROW_HEADER_W && content_x < x - ROW_HEADER_W + g_col_widths[c]) { if (content_x >= x && content_x < x + g_col_widths[c]) {
*out_col = c; *out_col = c;
return true; return true;
} }