From 310054e0586ea415f6e0254314c777992d66d12c Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 14 Jun 2023 15:34:16 +0200 Subject: [PATCH] wait #6028 @0:20 --- src/Links/Link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Links/Link.php b/src/Links/Link.php index 22fed5b..cc13cec 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -656,7 +656,7 @@ class Link { } else { $points = $this->polygon; } - if (!empty($points)) { + if (!empty($points) && $this->width && $this->height) { $clippath = []; foreach ($points as $p) { $x = ($p['x'] / $this->width) * 100; -- 2.39.5