From af49d7ad96e1c8da591798eac2a28c1595211708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Hatcher?= Date: Mon, 2 Jun 2025 20:59:41 +0200 Subject: [PATCH] FIX: Download to png off by one errors --- webapp/IronCalc/src/components/Workbook/Workbook.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/IronCalc/src/components/Workbook/Workbook.tsx b/webapp/IronCalc/src/components/Workbook/Workbook.tsx index 2586f60..1b66927 100644 --- a/webapp/IronCalc/src/components/Workbook/Workbook.tsx +++ b/webapp/IronCalc/src/components/Workbook/Workbook.tsx @@ -574,8 +574,8 @@ const Workbook = (props: { model: Model; workbookState: WorkbookState }) => { columnStart, ); const [x1, y1] = worksheetCanvas.getCoordinatesByCell( - rowEnd, - columnEnd, + rowEnd + 1, + columnEnd + 1, ); const width = (x1 - x) * devicePixelRatio; const height = (y1 - y) * devicePixelRatio;