]> _ Git - fluidbook_tools.git/commitdiff
wait #7569 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 27 May 2025 08:41:47 +0000 (10:41 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 27 May 2025 08:41:47 +0000 (10:41 +0200)
src/Links/Link.php

index 95ab87413cb7609bc0de0587dd4a597ddcfd6dbc..861950b3a79d7a7d9ab25d4949c0862855acea59 100644 (file)
@@ -886,6 +886,9 @@ class Link
 
     public function isOutsidePage()
     {
+        if (!is_numeric($this->page)) {
+            return false;
+        }
         return $this->top + $this->height <= 0 || $this->top > $this->compiler->getHeightForLinks($this->page) || $this->left > $this->compiler->getWidthForLinks($this->page) || $this->left + $this->width <= 0;;
     }