src/PluginUtils/_Report.py: Fix custom paper size bug (bug #0000084)

svn: r6651
This commit is contained in:
Brian Matherly 2006-05-14 06:34:18 +00:00
parent ff008c2a76
commit 85a4d328c9
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,7 @@
2006-05-13 Brian Matherly <brian@gramps-project.org>
* src/plugins/NarrativeWeb.py: Add option for number of generations in
ancestor graph (bug # 0000077)
ancestor graph (bug #0000077)
* src/PluginUtils/_Report.py: Fix custom paper size bug (bug #0000084)
2006-05-13 Don Allingham <don@gramps-project.org>
* src/DataViews/_FamilyView.py (FamilyView.redraw): handle history

View File

@ -1250,12 +1250,15 @@ class ReportDialog(BareReportDialog):
def size_changed(self,obj):
(paper,name) = self.papersize_menu.get_value()
if paper.get_width() <= 0:
if name == "Custom Size":
self.pwidth.set_sensitive(1)
self.pheight.set_sensitive(1)
else:
self.pwidth.set_sensitive(0)
self.pheight.set_sensitive(0)
if paper.get_width() > 0 and paper.get_height() > 0:
self.pwidth.set_text("%.2f" % paper.get_width())
self.pheight.set_text("%.2f" % paper.get_height())