]> _ Git - fluidbook_tools.git/commitdiff
wip #5977
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 1 Jun 2023 09:36:30 +0000 (11:36 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 1 Jun 2023 09:36:30 +0000 (11:36 +0200)
src/Links/ZoomLink.php

index 3b9d5c702d21ba6ffd44a4417f780f53c0fbb4d7..3716e9ed4bd18720201bff6e78e90778f4a6b3db 100644 (file)
@@ -134,7 +134,7 @@ class ZoomLink extends NormalLink {
             $leftArea,
             null, $extractOptions, $cache);
 
-        if ($attributes['page'] % 2 === 0 && ($x + $w) > ($bookwidth + 1) && $compiler->isDoublePage()) {
+        if ($attributes['page'] % 2 === 0 && ($x + $w) > ($bookwidth + 1) && $compiler->isDoublePage() && $attributes['page'] + 1 <= $compiler->getPageNumber()) {
             if (!isset($attributes['pdf']) || !$attributes['pdf']) {
                 $pdfpath = $compiler->getPagePDFSource($attributes['page'] + 1);
                 $extractPage = 1;