* src/docgen/LPRDoc.py (LPRDoc.open): Fix margin settings.

svn: r8682
This commit is contained in:
Alex Roitman 2007-06-28 06:02:03 +00:00
parent 70d7a6c1a2
commit 0c9f1ce5bb
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,5 @@
2007-06-27 Alex Roitman <shura@gramps-project.org>
* src/docgen/LPRDoc.py (LPRDoc.open): Fix margin settings.
* src/BasicUtils/Makefile.am: Use new filenames.
* src/images/scalable/Makefile.am: Ship gramps-viewmedia.svg
* src/TreeViews/_PersonTreeView.py: Use name_displayer.

View File

@ -520,10 +520,10 @@ class LPRDoc(BaseDoc.BaseDoc,BaseDoc.TextDoc,BaseDoc.DrawDoc):
width, height = gnomeprint.job_get_page_size_from_config(
self.job.get_config())
self.left_margin = cm2u(self.get_left_margin())
self.right_margin = width - cm2u(self.get_right_margin())
self.top_margin = height - cm2u(self.get_top_margin())
self.bottom_margin = cm2u(self.get_bottom_margin())
self.left_margin = cm2u(self.paper.get_left_margin())
self.right_margin = width - cm2u(self.paper.get_right_margin())
self.top_margin = height - cm2u(self.paper.get_top_margin())
self.bottom_margin = cm2u(self.paper.get_bottom_margin())
self.start_page(self)
self.filename = ""