* src/docgen/PdfDoc.py (page_break): Minor cleanup;

(end_page): Was defined twice -- remove the first occurence.


svn: r2067
This commit is contained in:
Alex Roitman 2003-08-31 04:49:28 +00:00
parent 80ebb1b82b
commit 59f503c8bc
2 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2003-08-30 Alex Roitman <shura@alex.neuro.umn.edu>
* src/docgen/PdfDoc.py (page_break): Minor cleanup;
(end_page): Was defined twice -- remove the first occurence.
2003-08-30 Don Allingham <dallingham@users.sourceforge.net>
* src/docgen/PdfDoc.py: Support drawing functions.
* src/docgen/PdfDrawDoc.py: remove - all functions integrated into

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000 Donald N. Allingham
# Copyright (C) 2000-2003 Donald N. Allingham
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -165,9 +165,6 @@ class PdfDoc(BaseDoc.BaseDoc):
raise Errors.ReportError(_("Could not create %s") % self.filename)
def page_break(self):
self.end_page()
def end_page(self):
self.story.append(PageBreak())
def start_paragraph(self,style_name,leader=None):
@ -314,7 +311,7 @@ class PdfDoc(BaseDoc.BaseDoc):
self.drawing = Drawing(self.get_usable_width()*cm, self.get_usable_height()*cm)
def end_page(self):
self.story.append(self.drawing)
self.story.append(self.drawing)
def draw_line(self,style,x1,y1,x2,y2):
y1 = self.get_usable_height() - y1