From bbc75357184b34b3556951c48352ae02d0b790ec Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 23 Mar 2014 11:20:25 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/pdf/render/from_html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/pdf/render/from_html.py b/src/calibre/ebooks/pdf/render/from_html.py index 1e882d8385..d4711381df 100644 --- a/src/calibre/ebooks/pdf/render/from_html.py +++ b/src/calibre/ebooks/pdf/render/from_html.py @@ -384,7 +384,7 @@ class PDFWriter(QObject): elif col - 1 in sections: # Ensure we are using the last section on the previous page as # the section for this page, since this page has no sections - self.current_section = sections[col][-1] + self.current_section = sections[col-1][-1] self.doc.init_page() if self.header or self.footer: evaljs('paged_display.update_header_footer(%d)'%self.current_page_num)