Fixes add_row on EvTable class, allowing the creation of a table without a header.

This commit is contained in:
Duarte Cordeiro 2014-09-30 16:28:53 +01:00
parent 5b38f27554
commit fd7bb29505

View file

@ -1092,7 +1092,7 @@ class EvTable(object):
ypos = kwargs.get("ypos", None)
row = [Cell(data, **options) for data in args]
htable = len(self.table[0]) # assuming balanced table
htable = len(self.table[0]) if len(self.table)>0 else 0 # assuming balanced table
excess = len(row) - len(self.table)
if excess > 0: