Merge pull request #173 from adrg/fix-toc-chapter-tables

Fix TOC page numbering for chapters containing tables
This commit is contained in:
Gunnsteinn Hall 2019-09-23 22:42:08 +00:00 committed by GitHub
commit 5c6d448fca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -451,6 +451,7 @@ func (table *Table) GeneratePageBlocks(ctx DrawContext) ([]*Block, DrawContext,
ulY = ctx.Margins.top
ctx.Height = ctx.PageHeight - ctx.Margins.top - ctx.Margins.bottom
ctx.Page++
origHeight = ctx.Height
startrow = cell.row - 1