* src/plugins/FanChart.py: Fix name display for gen 6 and 7
svn: r7408
This commit is contained in:
parent
5af5a15bcf
commit
5ead919447
@ -1,3 +1,6 @@
|
||||
2006-10-15 Brian Matherly <brian@gramps-project.org>
|
||||
* src/plugins/FanChart.py: Fix name display for gen 6 and 7
|
||||
|
||||
2006-10-11 Alex Roitman <shura@gramps-project.org>
|
||||
* RELEASE: version 2.2.0rc1 is released.
|
||||
* configure.in: Bump up the version number.
|
||||
|
@ -245,19 +245,32 @@ class FanChart(Report):
|
||||
val = ""
|
||||
|
||||
if generation == 7:
|
||||
if self.full_circle:
|
||||
return [ pn.get_first_name() + " " + pn.get_surname(), val ]
|
||||
elif self.half_circle:
|
||||
return [ pn.get_first_name() + " " + pn.get_surname(), val ]
|
||||
if (pn.get_first_name() != "") and (pn.get_surname() != ""):
|
||||
name = pn.get_first_name() + " " + pn.get_surname()
|
||||
else:
|
||||
return [ pn.get_first_name() + " " + pn.get_surname() + ", " + val ]
|
||||
name = pn.get_first_name() + pn.get_surname()
|
||||
|
||||
if self.full_circle:
|
||||
return [ name, val ]
|
||||
elif self.half_circle:
|
||||
return [ name, val ]
|
||||
else:
|
||||
if (name != "") and (val != ""):
|
||||
string = name + ", " + val
|
||||
else:
|
||||
string = name + val
|
||||
return [string]
|
||||
elif generation == 6:
|
||||
if self.full_circle:
|
||||
return [ pn.get_first_name(), pn.get_surname(), val ]
|
||||
elif self.half_circle:
|
||||
return [ pn.get_first_name(), pn.get_surname(), val ]
|
||||
else:
|
||||
return [ pn.get_first_name() + " " + pn.get_surname(), val ]
|
||||
if (pn.get_first_name() != "") and (pn.get_surname() != ""):
|
||||
name = pn.get_first_name() + " " + pn.get_surname()
|
||||
else:
|
||||
name = pn.get_first_name() + pn.get_surname()
|
||||
return [ name, val ]
|
||||
else:
|
||||
return [ pn.get_first_name(), pn.get_surname(), val ]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user