Fix width error AbiWord2Doc.py.

svn: r8542
This commit is contained in:
Brian Matherly 2007-06-13 04:27:33 +00:00
parent dae8c99230
commit 165cebcd68
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,7 @@
2007-06-01 Brian Matherly <brian@gramps-project.org>
2007-06-12 Brian Matherly <brian@gramps-project.org>
* src/plugins/AbiWord2Doc.py: Fix width error
2007-06-12 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_ReportUtils.py:
* src/ReportBase/__init__.py:
* src/ReportBase/_Bibliography.py:

View File

@ -286,7 +286,7 @@ class AbiWordDoc(BaseDoc.BaseDoc,BaseDoc.TextDoc):
styles = self.get_style_sheet()
self.tblstyle = styles.get_table_style(style_name)
self.f.write('<table props="table-column-props:')
width = float(self.get_usable_width())
width = float(self.paper.get_usable_width())
for col in range(0,self.tblstyle.get_columns()):
self.f.write("%.2fcm/" % ((self.tblstyle.get_column_width(col)/100.0) * width))
self.f.write('">\n')