From fd7bb295056ea8247980fc0ad120f3f6411a0ec6 Mon Sep 17 00:00:00 2001 From: Duarte Cordeiro Date: Tue, 30 Sep 2014 16:28:53 +0100 Subject: [PATCH] Fixes add_row on EvTable class, allowing the creation of a table without a header. --- src/utils/evtable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/evtable.py b/src/utils/evtable.py index 764f2f1ab6..67d5eabca0 100644 --- a/src/utils/evtable.py +++ b/src/utils/evtable.py @@ -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: