From 99b5a11b209380f90d046e829bd0f9a536cfc2a1 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Tue, 6 Mar 2007 02:12:03 +0000 Subject: [PATCH] * src/plugins/TimeLine.py: Fix 0000943: Timeline doesn't show preferred name format svn: r8267 --- ChangeLog | 4 ++++ src/plugins/TimeLine.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 55699551c..52dd6e17a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-03-05 Brian Matherly + * src/plugins/TimeLine.py: Fix 0000943: Timeline doesn't show preferred + name format + 2007-03-03 Don Allingham * src/GrampsDb/_GrampsGEDDB.py: readonly database for GEDCOM * src/Editors/_EditNote.py: add additional fields diff --git a/src/plugins/TimeLine.py b/src/plugins/TimeLine.py index 21302b60d..2b45f48bf 100644 --- a/src/plugins/TimeLine.py +++ b/src/plugins/TimeLine.py @@ -207,7 +207,7 @@ class TimeLine(Report): else: d = None - n = p.get_primary_name().get_name() + n = NameDisplay.displayer.display_formal(p) self.doc.draw_text('TLG-text',n,incr+pad,self.header + (incr+pad)*index) y1 = self.header + (pad+incr)*index @@ -339,7 +339,7 @@ class TimeLine(Report): size = 0 for p_id in self.plist: p = self.database.get_person_from_handle(p_id) - n = p.get_primary_name().get_name() + n = NameDisplay.displayer.display_formal(p) size = max(self.doc.string_width(font,n),size) return pt2cm(size)