* 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 2581aa31fb
commit dd093aacfc
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> 2005-02-02 Eero Tamminen <eerot@sf>
* src/plugins/StatisticsChart.py: Better colors for pies * src/plugins/StatisticsChart.py: Better colors for pies

View File

@ -309,7 +309,7 @@ class GraphViz:
gender = person.get_gender() gender = person.get_gender()
if gender == person.MALE: if gender == person.MALE:
self.f.write('%s=%s, ' % (style, self.colors['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'])) self.f.write('%s=%s, ' % (style, self.colors['female']))
else: else:
self.f.write('%s=%s, ' % (style, self.colors['unknown'])) self.f.write('%s=%s, ' % (style, self.colors['unknown']))