* src/plugins/GraphViz.py: fix MALE/FEMALE/UNKNOWN

svn: r4019
This commit is contained in:
Don Allingham 2005-02-03 00:32:20 +00:00
parent 670b90d3ab
commit 9e3318dc17
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2005-02-02 Don Allingham <dallingham@users.sourceforge.net>
* src/plugins/GraphViz.py: fix MALE/FEMALE/UNKNOWN
2005-02-02 Eero Tamminen <eerot@sf>
* src/plugins/StatisticsChart.py: Better colors for pies

View File

@ -309,7 +309,7 @@ class GraphViz:
gender = person.get_gender()
if gender == person.MALE:
self.f.write('%s=%s, ' % (style, self.colors['male']))
elif gender == person.female:
elif gender == person.FEMALE:
self.f.write('%s=%s, ' % (style, self.colors['female']))
else:
self.f.write('%s=%s, ' % (style, self.colors['unknown']))