4861: Relationship view doesn't show marriage if no spouse

svn: r17932
This commit is contained in:
Michiel Nauta 2011-07-15 17:14:02 +00:00
parent 9a1b8ec128
commit 49feac90fa

View File

@ -1341,7 +1341,8 @@ class RelationshipView(NavigationView):
else:
# show "V Family: ..." and the rest
self.write_label("%s:" % _('Family'), family, False, person)
if handle:
if (handle or
family.get_relationship() != gen.lib.FamilyRelType.UNKNOWN):
box = self.write_person(_('Spouse'), handle)
if not self.write_relationship_events(box, family):