From 68465ccd5e24414fda5689ca2a6d29c18259001c Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 29 Nov 2001 21:07:56 +0000 Subject: [PATCH] Fixed year handling svn: r595 --- gramps/src/Date.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gramps/src/Date.py b/gramps/src/Date.py index ecdb9a0d0..a3d331fea 100644 --- a/gramps/src/Date.py +++ b/gramps/src/Date.py @@ -896,7 +896,11 @@ class SingleDate: self.day = int(string.replace(val,',','')) else: self.day = UNDEF - self.setYearVal(matches[3]) + val = matches[3] + if val: + self.setYearVal(matches[3]) + else: + self.setYearVal(UNDEF) return 1 match = SingleDate.fmt4.match(text)