From 5fe2a6322080b8d47f9d635f048282a3f4305be1 Mon Sep 17 00:00:00 2001 From: Aeroblast <15964528+Aeroblast@users.noreply.github.com> Date: Sat, 24 Jul 2021 19:43:18 +0800 Subject: [PATCH] =?UTF-8?q?guide=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/EpubBuilder.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/EpubBuilder.cs b/src/EpubBuilder.cs index b14dfa4..ed089e2 100644 --- a/src/EpubBuilder.cs +++ b/src/EpubBuilder.cs @@ -449,7 +449,8 @@ void CreateIndexDoc() { try { - int i = azw3.frag_table[g.num].file_num + 1; + int offset = extraCoverDocAdded ? 1 : 0; + int i = azw3.frag_table[g.num].file_num + offset; guide += string.Format("
  • {0}
  • \n", g.ref_name, Path.Combine("Text/", xhtml_names[i]), g.ref_type); } catch (Exception e)