From 061645d734edffc40844f728a5e30ea13020f57f Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 14 May 2002 15:18:31 +0000 Subject: [PATCH] Handle Mother relationship better svn: r988 --- gramps/src/plugins/GraphViz.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/src/plugins/GraphViz.py b/gramps/src/plugins/GraphViz.py index c2ce9ec5e..3a8b9afe5 100644 --- a/gramps/src/plugins/GraphViz.py +++ b/gramps/src/plugins/GraphViz.py @@ -287,8 +287,8 @@ def write_dot(file, ind_list, orien, width, height, tb_margin, file.write("center=1;\n") file.write("margin=0.5;\n") file.write("ratio=fill;\n") - file.write("size=\"%3.1f,%3.1f\";\n" % ((width * hpages) - (lr_margin * 2) - ((hpages - 1) * 1.0), - (height * vpages) - (tb_margin * 2) - ((vpages - 1) * 1.0))) + file.write("size=\"%3.1f,%3.1f\";\n" % ((width*hpages)-(lr_margin*2)-((hpages-1)*1.0), + (height*vpages)-(tb_margin*2)-((vpages-1)*1.0))) file.write("page=\"%3.1f,%3.1f\";\n" % (width,height)) if orien == PAPER_LANDSCAPE: @@ -325,7 +325,7 @@ def dump_person(person_list,file,adoptionsdashed,arrowheadstyle,arrowtailstyle): mother = family.getMother() if mother and mother in person_list: 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)) if adoptionsdashed and mrel != _("Birth"): file.write('style=dashed')