FIX: Download to png off by one errors

This commit is contained in:
Nicolás Hatcher
2025-06-02 20:59:41 +02:00
committed by Nicolás Hatcher Andrés
parent 3e015bf13a
commit af49d7ad96

View File

@@ -574,8 +574,8 @@ const Workbook = (props: { model: Model; workbookState: WorkbookState }) => {
columnStart, columnStart,
); );
const [x1, y1] = worksheetCanvas.getCoordinatesByCell( const [x1, y1] = worksheetCanvas.getCoordinatesByCell(
rowEnd, rowEnd + 1,
columnEnd, columnEnd + 1,
); );
const width = (x1 - x) * devicePixelRatio; const width = (x1 - x) * devicePixelRatio;
const height = (y1 - y) * devicePixelRatio; const height = (y1 - y) * devicePixelRatio;