diff options
| author | Mantavya Gajjar <mga@tinyerp.com> | 2009-06-01 15:44:19 +0530 |
|---|---|---|
| committer | Mantavya Gajjar <mga@tinyerp.com> | 2009-06-01 15:44:19 +0530 |
| commit | 5aa46777180dcaf971f41c838975c743b9dc902e (patch) | |
| tree | 62d014a0ecea700c9b64f30b5fe4919939edc011 /bin/report/render/html2html/html2html.py | |
| parent | 31ff33c49b7099403dd86b858283fa275770c076 (diff) | |
| parent | 74b2bb3e40beffef00a91a99e50b1e3122d1f233 (diff) | |
merging from trunk server
bzr revid: mga@tinyerp.com-20090601101419-wkfesmoaddfpufxf
Diffstat (limited to 'bin/report/render/html2html/html2html.py')
| -rw-r--r-- | bin/report/render/html2html/html2html.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/report/render/html2html/html2html.py b/bin/report/render/html2html/html2html.py index fb1f6fcedd0..d4fa8559720 100644 --- a/bin/report/render/html2html/html2html.py +++ b/bin/report/render/html2html/html2html.py @@ -58,8 +58,10 @@ class html2html(object): output = cStringIO.StringIO(base64.decodestring(src)) img = ImageReader(output) (width,height) = img.getSize() - new_child.set('width',str(width)) - new_child.set('height',str(height)) + if not new_child.get('width'): + new_child.set('width',str(width)) + if not new_child.get('height') : + new_child.set('height',str(height)) else : new_child.getparent().remove(new_child) new_child.text = utils._process_text(self, child.text) |
