[react] fix: Always add bounding box in plugin-tiler. Fixes #273
This commit is contained in:
parent
b6cb59e94c
commit
d0cebc8959
1 changed files with 5 additions and 6 deletions
|
@ -261,12 +261,11 @@ const basePlugin = ({
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (col === cols - 1 && row === rows - 1) {
|
// Ensure bounding box. See https://codeberg.org/freesewing/freesewing/issues/273
|
||||||
const br = points[`${pageName}-br`]
|
const br = points[`${pageName}-br`]
|
||||||
part.width = br.x
|
part.width = br.x
|
||||||
part.height = br.y
|
part.height = br.y
|
||||||
part.bottomRight = new Point(br.x, br.y)
|
part.bottomRight = new Point(br.x, br.y)
|
||||||
}
|
|
||||||
|
|
||||||
if (!printStyle) {
|
if (!printStyle) {
|
||||||
paths[pageName]
|
paths[pageName]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue