Fixed Pedigree View for new preferred family concept
svn: r856
This commit is contained in:
parent
9b437bb5ff
commit
d4b0090710
@ -382,15 +382,10 @@ class PedigreeView:
|
||||
|
||||
if depth > 5 or person == None:
|
||||
return
|
||||
family = person.getMainFamily()
|
||||
frel = 0
|
||||
mrel = 0
|
||||
if family == None:
|
||||
l = person.getAltFamilyList()
|
||||
if len(l) > 0:
|
||||
(family,m,f) = l[0]
|
||||
mrel = (m != "Birth")
|
||||
frel = (f != "Birth")
|
||||
(family,m,f) = person.getMainFamilyRel()
|
||||
if family:
|
||||
mrel = (m != "Birth")
|
||||
frel = (f != "Birth")
|
||||
|
||||
list[index] = (person,val)
|
||||
if family != None:
|
||||
|
@ -1120,9 +1120,9 @@ class Person:
|
||||
"""returns the main Family of the Person, the Family in which the
|
||||
Person is a natural born child"""
|
||||
if len(self.AltFamilyList) == 0:
|
||||
return None
|
||||
return (None,None,None)
|
||||
else:
|
||||
return self.AltFamilyList
|
||||
return self.AltFamilyList[0]
|
||||
|
||||
def setNote(self,text):
|
||||
"""sets the note attached to the Person to the passed text"""
|
||||
|
Loading…
Reference in New Issue
Block a user