7198,7212: fix Date.set(value=None)

back-port [3c93c1d] from gramps40
This commit is contained in:
Vassilii Khachaturov 2013-11-23 20:22:41 +02:00
parent 62cd754ef4
commit d96b01318a

View File

@ -1562,7 +1562,7 @@ class Date(object):
if calendar is None:
calendar = self.calendar
if value is None:
value = self.value
value = self.dateval
if modifier in (Date.MOD_NONE, Date.MOD_BEFORE,
Date.MOD_AFTER, Date.MOD_ABOUT) and len(value) < 4: