From 6527b43defdeca9325fdfd2101fc30454ad9715f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Thu, 21 Jun 2012 09:17:44 +0000 Subject: [PATCH] 5794: Birthday list report has invalid code svn: r19889 --- src/plugins/textreport/BirthdayReport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/textreport/BirthdayReport.py b/src/plugins/textreport/BirthdayReport.py index 5a0a01ace..7493d16fe 100644 --- a/src/plugins/textreport/BirthdayReport.py +++ b/src/plugins/textreport/BirthdayReport.py @@ -39,7 +39,7 @@ import datetime, time #------------------------------------------------------------------------ from gen.display.name import displayer as global_name_display from gen.errors import ReportError -from gen.lib import NameType, EventType, Name, Date, Person +from gen.lib import NameType, EventType, Name, Date, Person, Surname from gen.relationship import get_relationship_calculator from gen.plug.docgen import (FontStyle, ParagraphStyle, GraphicsStyle, FONT_SERIF, PARA_ALIGN_RIGHT, @@ -257,7 +257,7 @@ class CalendarReport(Report): if father is not None: primary_name = father.get_primary_name() if primary_name: - father_lastname = primary_name.get_primary_surname() + father_lastname = Surname.get_surname(primary_name.get_primary_surname()) short_name = self.get_name(person, father_lastname)