]> _ Git - fluidbook_tools.git/commitdiff
wait #6028 @0:20
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 14 Jun 2023 13:34:16 +0000 (15:34 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 14 Jun 2023 13:34:16 +0000 (15:34 +0200)
src/Links/Link.php

index 22fed5be1999a57b3acacb2fb6ddb9ca23bf0ce8..cc13cec7ebc6b105fa6475a37eb76af7df022377 100644 (file)
@@ -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;