mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
PDF Output: Fix typo that broke use of custom paper sizes. Fixes #1097563 (PDF Conversion of .html in 0.9.13 crashes)
This commit is contained in:
parent
31370aba8a
commit
656f7f9644
@ -47,7 +47,7 @@ def get_page_size(opts, for_comic=False): # {{{
|
||||
if opts.unit == 'devicepixel':
|
||||
factor = 72.0 / opts.output_profile.dpi
|
||||
else:
|
||||
{'point':1.0, 'inch':inch, 'cicero':cicero,
|
||||
factor = {'point':1.0, 'inch':inch, 'cicero':cicero,
|
||||
'didot':didot, 'pica':pica, 'millimeter':mm,
|
||||
'centimeter':cm}[opts.unit]
|
||||
page_size = (factor*width, factor*height)
|
||||
|
Loading…
x
Reference in New Issue
Block a user