From e14cb98d663fc36d8258b991e5ccd266ee99b3d2 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Fri, 19 Feb 2016 18:47:46 +0100 Subject: [PATCH] 8602: Age in the event family view column is wrong --- gramps/gen/lib/date.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gramps/gen/lib/date.py b/gramps/gen/lib/date.py index fb499ee4e..c9f1b520c 100644 --- a/gramps/gen/lib/date.py +++ b/gramps/gen/lib/date.py @@ -280,6 +280,9 @@ class Span(object): _repr = trans_text("greater than %s years") % Span.ALIVE elif self.date1.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 elif self.date2.get_modifier() == Date.MOD_BEFORE: _repr = trans_text("more than") + " " + fdate12