From 229ff2f01cba8c18b7698a31cfca756da5c5ac5f Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Wed, 9 Nov 2005 19:56:54 +0000 Subject: [PATCH] * src/docgen/LPRDoc.py: Use paragraph padding correctly. svn: r5382 --- gramps2/ChangeLog | 3 +++ gramps2/src/docgen/LPRDoc.py | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index d286ca384..bc4248f85 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-11-09 Alex Roitman + * src/docgen/LPRDoc.py: Use paragraph padding correctly. + 2005-11-09 Martin Hawlisch * src/DbPrompter.py (DbPrompter): Use Combo to list multiple rcecent files * src/gramps.glade: Use Combo to list multiple rcecent files diff --git a/gramps2/src/docgen/LPRDoc.py b/gramps2/src/docgen/LPRDoc.py index 1a054f537..978add690 100644 --- a/gramps2/src/docgen/LPRDoc.py +++ b/gramps2/src/docgen/LPRDoc.py @@ -384,7 +384,7 @@ class GnomePrintParagraph: self.lines.append((start_piece,start_word,end_piece,end_word,avail_width)) self.height = nlines * self.fontstyle.get_size() * _EXTRA_SPACING_FACTOR \ - + 2 * cm2u(self.style.get_padding()) + + cm2u(self.style.get_padding()) def get_lines(self): """ @@ -839,8 +839,8 @@ class LPRDoc(BaseDoc.BaseDoc): x = left_margin y = self.y - if y != self.top_margin: - y = y - cm2u(paragraph.style.get_padding()) + #if y != self.top_margin: + # y = y - cm2u(paragraph.style.get_padding()) # Loop over lines which were assembled by paragraph.format() for (start_piece,start_word,end_piece,end_word,avail_width) \ @@ -911,7 +911,7 @@ class LPRDoc(BaseDoc.BaseDoc): x = left_margin x = x - cm2u(paragraph.style.get_left_margin()) - y = y - cm2u(paragraph.style.get_padding()) + #y = y - cm2u(paragraph.style.get_padding()) return (x,y) def output_table(self):