Skip to content

Commit ead7147

Browse files
committed
see pr: niklasvh#3043
Squashed commit of the following: commit 4a0f97b Author: Cornelius Weiß <[email protected]> Date: Fri Apr 14 18:13:40 2023 +0200 make hotfix branch includeable via webpack commit 7a8d21a Author: ccheng-dev <[email protected]> Date: Mon Mar 27 08:24:33 2023 +0200 fix: intrinsicProportion is not a number
1 parent 70e8d7f commit ead7147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/render/canvas/canvas-renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ export class CanvasRenderer extends Renderer {
602602
const [path, x, y, width, height] = calculateBackgroundRendering(container, index, [
603603
image.width,
604604
image.height,
605-
image.width / image.height
605+
isNaN(image.width / image.height) ? 1 : image.width / image.height
606606
]);
607607
const pattern = this.ctx.createPattern(
608608
this.resizeImage(image, width, height),

0 commit comments

Comments
 (0)