diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index ebe76c252..3c64b1138 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -7,7 +7,8 @@ * src/plugins/Check.py (cleanup_missing_photos): Typo. * configure.in: Bump up the version number. * NEWS: Update. - * src/ReportUtils.py (insert_images): Pass sizes to add_media_object. + * src/ReportUtils.py (insert_images): Pass sizes to add_media_object; + (married_str): Quit if no spouse. 2005-05-12 Martin Hawlisch * src/plugins/TestcaseGenerator.py: Added generation of multiple date diff --git a/gramps2/src/ReportUtils.py b/gramps2/src/ReportUtils.py index 3e2c68e86..f2777b12b 100644 --- a/gramps2/src/ReportUtils.py +++ b/gramps2/src/ReportUtils.py @@ -795,6 +795,10 @@ def married_str(database,person,spouse,event,endnotes=None, @rtype: unicode """ + # not all families have a spouse. + if not spouse: + return u"" + if not endnotes: endnotes = empty_notes