From 297e093457363fd2f43db989929e1d869034d6dc Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Sat, 24 Oct 2026 22:58:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=89=93=E5=8D=B0=E8=83=BD=E5=8A=9B):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=80=E9=80=89=E9=A1=B5=E9=9D=A2=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/webui/ofdgo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/webui/ofdgo.js b/assets/webui/ofdgo.js index 35c7ab1..5244bac 100644 --- a/assets/webui/ofdgo.js +++ b/assets/webui/ofdgo.js @@ -671,7 +671,7 @@ function openPrintPanel() { if (!tab.state.doc || !tab.state.ready || document.body.hasAttribute("data-busy") || formDialogOpen()) return; printDialog ||= createPrintDialog(); printDialog.open({tab, call:(name, ...args) => callTabWASM(tab, name, ...args), page:tab.state.pageIndex, - selection:[...tab.state.pageSelection].sort((a,b) => a-b), annotations:tab.state.renderAnnotations, + selection:tab.state.pageSelection.size ? selectedPageIndexes() : [], annotations:tab.state.renderAnnotations, name:tab.state.fileName || tab.state.doc.title || "OFDGo"}); }