src/PluginUtils/_Report.py: Fix custom paper size bug (bug #0000084)
svn: r6651
This commit is contained in:
parent
6e73513f17
commit
44a902aeff
@ -1,6 +1,7 @@
|
|||||||
2006-05-13 Brian Matherly <brian@gramps-project.org>
|
2006-05-13 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/plugins/NarrativeWeb.py: Add option for number of generations in
|
* 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>
|
2006-05-13 Don Allingham <don@gramps-project.org>
|
||||||
* src/DataViews/_FamilyView.py (FamilyView.redraw): handle history
|
* src/DataViews/_FamilyView.py (FamilyView.redraw): handle history
|
||||||
|
@ -1250,12 +1250,15 @@ class ReportDialog(BareReportDialog):
|
|||||||
|
|
||||||
def size_changed(self,obj):
|
def size_changed(self,obj):
|
||||||
(paper,name) = self.papersize_menu.get_value()
|
(paper,name) = self.papersize_menu.get_value()
|
||||||
if paper.get_width() <= 0:
|
|
||||||
|
if name == "Custom Size":
|
||||||
self.pwidth.set_sensitive(1)
|
self.pwidth.set_sensitive(1)
|
||||||
self.pheight.set_sensitive(1)
|
self.pheight.set_sensitive(1)
|
||||||
else:
|
else:
|
||||||
self.pwidth.set_sensitive(0)
|
self.pwidth.set_sensitive(0)
|
||||||
self.pheight.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.pwidth.set_text("%.2f" % paper.get_width())
|
||||||
self.pheight.set_text("%.2f" % paper.get_height())
|
self.pheight.set_text("%.2f" % paper.get_height())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user