8602: Age in the event family view column is wrong

This commit is contained in:
SNoiraud 2016-02-19 18:47:46 +01:00
parent b22de39a25
commit e14cb98d66

View File

@ -280,6 +280,9 @@ class Span(object):
_repr = trans_text("greater than %s years") % Span.ALIVE _repr = trans_text("greater than %s years") % Span.ALIVE
elif self.date1.get_modifier() == Date.MOD_NONE: elif self.date1.get_modifier() == Date.MOD_NONE:
if self.date2.get_modifier() == Date.MOD_NONE: if self.date2.get_modifier() == Date.MOD_NONE:
if fdate12[0] == '-':
# a negative age is not realistic
fdate12 = '(' + fdate12[1:].replace('-', '') + ')'
_repr = fdate12 _repr = fdate12
elif self.date2.get_modifier() == Date.MOD_BEFORE: elif self.date2.get_modifier() == Date.MOD_BEFORE:
_repr = trans_text("more than") + " " + fdate12 _repr = trans_text("more than") + " " + fdate12