Skip to content

Commit

Permalink
[waterfallplot] modify numPages calculation
Browse files Browse the repository at this point in the history
(per discussion in PR, using method that yields number closer to actual count)
  • Loading branch information
josh-hadley committed Feb 19, 2020
1 parent 8bb24c9 commit 692e944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/afdko/pdflib/fontpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1993,7 +1993,7 @@ def makeWaterfallPDF(params, pdfFont, doProgressBar):
if numWaterfallsOnPage > 0:
numPages = int(ceil(float(numWaterFalls) / numWaterfallsOnPage))
else:
numPages = int(ceil(float(numWaterFalls)*pageHeight / waterfallHeight))
numPages = int(ceil(float(numWaterFalls) * waterfallHeight / pageHeight))

if numPages == 0:
numPages = 1
Expand Down

0 comments on commit 692e944

Please sign in to comment.