From 7503d70377cdae525547248a65b1171445eaa9a3 Mon Sep 17 00:00:00 2001 From: Saud Fatayerji Date: Sun, 19 Nov 2023 01:18:46 +0300 Subject: [PATCH] Marked newly discovered bug --- shared-operations/src/functions/common/pageIndexesSorting.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shared-operations/src/functions/common/pageIndexesSorting.ts b/shared-operations/src/functions/common/pageIndexesSorting.ts index 9340220c1..e4522a74c 100644 --- a/shared-operations/src/functions/common/pageIndexesSorting.ts +++ b/shared-operations/src/functions/common/pageIndexesSorting.ts @@ -32,6 +32,8 @@ function duplexSort(pages: number|number[]): number[] { } /** + * TODO: This code is bugged. With even pages it is just duplexSort() and with odd pages, a page is duplicated! + * * Arranges pages for booklet printing (last, first, second, second last, ...). * @param pages A list of page indexes, or the number of total pages in the document (which will be converted into a list of page indexes). * @returns A booklet-sorted list of page indexes.