* src/docgen/LPRDoc.py: Use paragraph padding correctly.

svn: r5382
This commit is contained in:
Alex Roitman 2005-11-09 19:56:54 +00:00
parent 666cc08475
commit 229ff2f01c
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,6 @@
2005-11-09 Alex Roitman <shura@gramps-project.org>
* src/docgen/LPRDoc.py: Use paragraph padding correctly.
2005-11-09 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/DbPrompter.py (DbPrompter): Use Combo to list multiple rcecent files
* src/gramps.glade: Use Combo to list multiple rcecent files

View File

@ -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):