DOCX Output: Fix handling of images with size specified as auto

This commit is contained in:
Kovid Goyal 2015-05-14 17:26:52 +05:30
parent 6e09039c08
commit 0fdf12e446

View File

@ -513,7 +513,7 @@ class Style(object):
x = self._style.get(attr)
if x is not None:
if x == 'auto':
ans = base
ans = self._unit_convert(str(img_size) + 'px', base=base)
else:
x = self._unit_convert(x, base=base)
if isinstance(x, (float, int, long)):