]> _ Git - fluidbook_tools.git/commitdiff
wip #5178
authorvincent <vincent@enhydra.fr>
Sat, 26 Mar 2022 11:28:02 +0000 (12:28 +0100)
committervincent <vincent@enhydra.fr>
Sat, 26 Mar 2022 11:28:02 +0000 (12:28 +0100)
src/Compiler/Compiler.php

index 6b4ab8287b5e492f20a4ee122015c456e2f442b1..8b67d0b8e44049580abf8a2561656d993f558357 100644 (file)
@@ -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()