Fixed date handling for GEDCOM

svn: r600
This commit is contained in:
Don Allingham
2001-12-01 04:23:42 +00:00
parent a1be214c15
commit c6e338de0a
10 changed files with 454 additions and 196 deletions

View File

@@ -839,7 +839,7 @@ class SingleDate:
if self.month == UNDEF:
raise Date.Error,text
self.day = int(matches[1])
if len(matches) == 4:
if len(matches) == 4 and matches[3] != None:
self.setYearVal(matches[3])
else:
self.year = UNDEF