From d0cebc8959ff6cfe5881bee8adae683a123f0648 Mon Sep 17 00:00:00 2001 From: joostdecock Date: Thu, 1 May 2025 16:56:25 +0200 Subject: [PATCH] [react] fix: Always add bounding box in plugin-tiler. Fixes #273 --- .../components/Editor/lib/export/plugin-tiler.mjs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/react/components/Editor/lib/export/plugin-tiler.mjs b/packages/react/components/Editor/lib/export/plugin-tiler.mjs index 0e27e2b90b0..87da406c864 100644 --- a/packages/react/components/Editor/lib/export/plugin-tiler.mjs +++ b/packages/react/components/Editor/lib/export/plugin-tiler.mjs @@ -261,12 +261,11 @@ const basePlugin = ({ }) } - if (col === cols - 1 && row === rows - 1) { - const br = points[`${pageName}-br`] - part.width = br.x - part.height = br.y - part.bottomRight = new Point(br.x, br.y) - } + // Ensure bounding box. See https://codeberg.org/freesewing/freesewing/issues/273 + const br = points[`${pageName}-br`] + part.width = br.x + part.height = br.y + part.bottomRight = new Point(br.x, br.y) if (!printStyle) { paths[pageName]