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:
Kovid Goyal 2013-01-09 10:05:11 +05:30
parent 31370aba8a
commit 656f7f9644

View File

@ -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)