From 93506266cb5a685e6a56633fe9366c0957d2db6f Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 26 Mar 2022 12:28:02 +0100 Subject: [PATCH] wip #5178 --- src/Compiler/Compiler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.39.5