From: Vincent Vanwaelscappel Date: Wed, 14 Jun 2023 13:34:16 +0000 (+0200) Subject: wait #6028 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=310054e0586ea415f6e0254314c777992d66d12c;p=fluidbook_tools.git wait #6028 @0:20 --- 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;