From: vincent Date: Sat, 26 Mar 2022 11:28:02 +0000 (+0100) Subject: wip #5178 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=93506266cb5a685e6a56633fe9366c0957d2db6f;p=fluidbook_tools.git wip #5178 --- diff --git a/src/Compiler/Compiler.php b/src/Compiler/Compiler.php index 6b4ab82..8b67d0b 100644 --- a/src/Compiler/Compiler.php +++ b/src/Compiler/Compiler.php @@ -296,9 +296,9 @@ class Compiler implements ShouldQueue, ShouldBeUnique $this->config->numerotation = []; foreach ($this->sources as $source) { - $this->config->numerotation += array_slice($source->getDocument()->getPageNumbers(), $source->getStart(), $source->getPages()); + $this->config->numerotation += array_slice($source->getDocument()->getPageNumbers(), $source->getStart() - 1, $source->getPages()); } - dd($this->config->numerotation,$this->sources); + dd($this->config->numerotation, $this->sources); } protected function compileChapters()