From c2b86fbed5419143de99048df6162bf52ff9b6d1 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sun, 31 Aug 2003 04:49:28 +0000 Subject: [PATCH] * src/docgen/PdfDoc.py (page_break): Minor cleanup; (end_page): Was defined twice -- remove the first occurence. svn: r2067 --- gramps2/ChangeLog | 4 ++++ gramps2/src/docgen/PdfDoc.py | 7 ++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 5b307a65d..54d5e1626 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2003-08-30 Alex Roitman + * src/docgen/PdfDoc.py (page_break): Minor cleanup; + (end_page): Was defined twice -- remove the first occurence. + 2003-08-30 Don Allingham * src/docgen/PdfDoc.py: Support drawing functions. * src/docgen/PdfDrawDoc.py: remove - all functions integrated into diff --git a/gramps2/src/docgen/PdfDoc.py b/gramps2/src/docgen/PdfDoc.py index 6a6f90ac1..17c5eed08 100644 --- a/gramps2/src/docgen/PdfDoc.py +++ b/gramps2/src/docgen/PdfDoc.py @@ -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