DOCX: Handle table styles with no overrides

This commit is contained in:
Kovid Goyal 2013-06-05 10:23:37 +05:30
parent 76fa3a16b3
commit 2ec590f068

View File

@ -371,6 +371,8 @@ class Table(object):
self.table_style, self.paragraph_style = style['table'], style.get('paragraph', None)
self.run_style = style.get('run', None)
self.overrides = self.table_style.overrides
if self.overrides is inherit:
self.overrides = {}
if 'wholeTable' in self.overrides and 'table' in self.overrides['wholeTable']:
self.table_style.update(self.overrides['wholeTable']['table'])