Fixed relationship calculator

svn: r627
This commit is contained in:
Don Allingham 2001-12-16 14:11:56 +00:00
parent 0825e74659
commit 298030620b
2 changed files with 2 additions and 3 deletions

View File

@ -133,7 +133,6 @@ def loadData(database, filename, callback=None):
f.close() f.close()
except IOError,msg: except IOError,msg:
use_gzip = 0 use_gzip = 0
f.close()
else: else:
use_gzip = 0 use_gzip = 0

View File

@ -226,9 +226,9 @@ class RelCalc:
text = secondName + get_prefix(firstRel-1,"niece") + firstName + "." text = secondName + get_prefix(firstRel-1,"niece") + firstName + "."
else: else:
if secondRel > firstRel: if secondRel > firstRel:
text = secondName + cousin(secondRel-1,secondRel-firstRel) + firstName + "." text = secondName + cousin(firstRel-1,secondRel-firstRel) + firstName + "."
else: else:
text = secondName + cousin(firstRel-1,firstRel-secondRel) + firstName + "." text = secondName + cousin(secondRel-1,firstRel-secondRel) + firstName + "."
text1 = self.glade.get_widget("text1") text1 = self.glade.get_widget("text1")
text1.set_point(0) text1.set_point(0)