[FIX] reports: allow empty images with reportlab 2.5
bzr revid: chs@openerp.com-20110504095000-zaqenmjpsbl6g5ew
This commit is contained in:
@@ -451,7 +451,7 @@ class _rml_canvas(object):
|
||||
res = utils._regex.findall(node.text)
|
||||
for key in res:
|
||||
newtext = eval(key, {}, self.localcontext)
|
||||
node.text = newtext
|
||||
node.text = newtext or ''
|
||||
image_data = None
|
||||
if node.text:
|
||||
image_data = base64.decodestring(node.text)
|
||||
|
||||
Reference in New Issue
Block a user