From 69b845c38844c743879ec78f30b76334a5d1cae5 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 25 Aug 2010 05:07:44 +0000 Subject: [PATCH] Census report made this value too big (it tried to make more than 50 columns) even though the US 1880 census only has about 24. svn: r15815 --- src/plugins/docgen/ODFDoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/docgen/ODFDoc.py b/src/plugins/docgen/ODFDoc.py index 6a9fac33e..6c4f162d5 100644 --- a/src/plugins/docgen/ODFDoc.py +++ b/src/plugins/docgen/ODFDoc.py @@ -699,7 +699,7 @@ class ODFDoc(BaseDoc, TextDoc, DrawDoc): '\n' ) - for col in range(0, style.get_columns()): + for col in range(0, min(style.get_columns(), 50)): width = table_width * float(style.get_column_width(col) / 100.0) width_str = "%.4f" % width wrt(