Handle Mother relationship better

svn: r988
This commit is contained in:
Don Allingham 2002-05-14 15:18:31 +00:00
parent 10237d2d93
commit 061645d734

View File

@ -325,7 +325,7 @@ def dump_person(person_list,file,adoptionsdashed,arrowheadstyle,arrowtailstyle):
mother = family.getMother() mother = family.getMother()
if mother and mother in person_list: if mother and mother in person_list:
mid = string.replace(mother.getId(),'-','_') mid = string.replace(mother.getId(),'-','_')
file.write('p%s -> p%s [' % (pid, fid)) file.write('p%s -> p%s [' % (pid, mid))
file.write('arrowhead=%s, arrowtail=%s, ' % (arrowheadstyle, arrowtailstyle)) file.write('arrowhead=%s, arrowtail=%s, ' % (arrowheadstyle, arrowtailstyle))
if adoptionsdashed and mrel != _("Birth"): if adoptionsdashed and mrel != _("Birth"):
file.write('style=dashed') file.write('style=dashed')