mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-09 15:45:08 +01:00
DOCX Output: Fix handling of images with size specified as auto
This commit is contained in:
parent
6e09039c08
commit
0fdf12e446
1 changed files with 1 additions and 1 deletions
|
|
@ -513,7 +513,7 @@ def img_dimension(self, attr, img_size):
|
|||
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…
Reference in a new issue