From 647f50ce27d83f94abf2c5364d1eaf1f32d071af Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Fri, 30 Jan 2004 13:51:02 +0000 Subject: [PATCH] * src/plugins/AncestorChart2.py (write_book_item): Treat unconfigured title. svn: r2726 --- ChangeLog | 4 ++++ src/plugins/AncestorChart2.py | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 636ac526f..28ca6908f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-01-30 Alex Roitman + * src/plugins/AncestorChart2.py (write_book_item): + Treat unconfigured title. + 2004-01-27 Don Allingham * src/docgen/PdfDoc.py: fix encoding exception * gramps-mdk.spec: Mandrake RPM spec file diff --git a/src/plugins/AncestorChart2.py b/src/plugins/AncestorChart2.py index 758c1b384..3a3b67a4b 100644 --- a/src/plugins/AncestorChart2.py +++ b/src/plugins/AncestorChart2.py @@ -649,7 +649,10 @@ def write_book_item(database,person,doc,options,newpage=0): max_gen = int(options[1]) disp_format = options[2] compress = int(options[3]) - title = options[4] + if options[4] is not None: + title = options[4] + else: + title = "" return AncestorChart(database, person, max_gen, disp_format, doc, None, 1, compress, title, newpage )