5755: some report "custom paper" sizes are saved incorrectly

svn: r19622
This commit is contained in:
Paul Franklin 2012-05-22 15:51:28 +00:00
parent fa901ca5a5
commit 741467ef33

View File

@ -434,7 +434,7 @@ class OptionListCollection(_options.OptionListCollection):
f.write(' <metric value="%d"/>\n' % f.write(' <metric value="%d"/>\n' %
option_list.get_paper_metric() ) option_list.get_paper_metric() )
if option_list.get_custom_paper_size(): if option_list.get_custom_paper_size():
size = self.get_last_custom_paper_size() size = option_list.get_custom_paper_size()
f.write(' <size value="%f %f"/>\n' % (size[0], size[1]) ) f.write(' <size value="%f %f"/>\n' % (size[0], size[1]) )
if option_list.get_margins(): if option_list.get_margins():
margins = option_list.get_margins() margins = option_list.get_margins()