From fe971218bd3d6b418be30a1dd7e933486902f1e2 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 2 Mar 2004 03:09:49 +0000 Subject: [PATCH] Oops svn: r2948 --- src/docgen/LPRDoc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/docgen/LPRDoc.py b/src/docgen/LPRDoc.py index f4fc0d1cc..93d726fcb 100644 --- a/src/docgen/LPRDoc.py +++ b/src/docgen/LPRDoc.py @@ -541,7 +541,9 @@ class LPRDoc(BaseDoc.BaseDoc): #find total width that the table needs to be. #later this value may be used to cut the longest columns down #so that data fits on the width of the page - __min_table_width = sum(__min_col_size) + __min_table_width = 0 + for __size in __min_col_size: + __min_table_width = __min_table_width + __size #is table width larger than the width of the paper? if __min_table_width > (self.__right_margin - self.__left_margin):