0001253: Calendar report crashes without margins entered.

svn: r9048
This commit is contained in:
Brian Matherly
2007-10-01 02:24:36 +00:00
parent e9921d1737
commit d05b0e142e
2 changed files with 5 additions and 1 deletions

View File

@@ -585,7 +585,7 @@ class ReportDialog(BareReportDialog):
paper_margins[i] = paper_margins[i] * self.paper_unit_multiplier
paper_margins[i] = max(paper_margins[i], 0)
except:
self.paper_margins[i] = 2.54
paper_margins[i] = 2.54
return paper_margins