From 00ee16196295b92483ec53b8080f9e9ba5447480 Mon Sep 17 00:00:00 2001 From: Daniel Hammer Date: Fri, 10 Apr 2026 17:42:48 +0200 Subject: [PATCH] fix: fix spreadsheet column click code --- programs/src/spreadsheet/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/src/spreadsheet/main.cpp b/programs/src/spreadsheet/main.cpp index d27e54b..69dd5d1 100644 --- a/programs/src/spreadsheet/main.cpp +++ b/programs/src/spreadsheet/main.cpp @@ -128,7 +128,7 @@ bool hit_cell(int mx, int my, int* out_col, int* out_row) { int x = ROW_HEADER_W; 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; return true; }