mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
DOCX Output: Fix handling of images with size specified as auto
This commit is contained in:
parent
6e09039c08
commit
0fdf12e446
@ -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)):
|
||||
|
Loading…
x
Reference in New Issue
Block a user