[FIX] report engine: fixed a bug when the xml tag is empty

bzr revid: olt@tinyerp.com-20090817123747-ets06zg2rym119ln
This commit is contained in:
Olivier Laurent 2009-08-17 14:37:47 +02:00
parent 68df3c4c9d
commit b29baf18e6
1 changed files with 2 additions and 1 deletions

View File

@ -216,7 +216,8 @@ class _rml_canvas(object):
self.canvas.setTitle(self.title)
def _textual(self, node, x=0, y=0):
rc = utils._process_text(self, node.text.encode('utf-8') or '')
text = node.text and node.text.encode('utf-8') or ''
rc = utils._process_text(self, text)
for n in node:
if n.tag == 'seq':
from reportlab.lib.sequencer import getSequencer