From 0fdf12e4461fcade0dbaf27320be116a9ca20a85 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 14 May 2015 17:26:52 +0530 Subject: [PATCH] DOCX Output: Fix handling of images with size specified as auto --- src/calibre/ebooks/oeb/stylizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/stylizer.py b/src/calibre/ebooks/oeb/stylizer.py index c87216caeb..ec986b168b 100644 --- a/src/calibre/ebooks/oeb/stylizer.py +++ b/src/calibre/ebooks/oeb/stylizer.py @@ -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)):