From 0c3b2d44a8dfad74e95203eb2ff5312312d21fdd Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Mon, 21 Mar 2016 08:22:40 +0100 Subject: [PATCH] 8602: Age in the event family view column is wrong. --- gramps/gen/lib/date.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/gen/lib/date.py b/gramps/gen/lib/date.py index 4ca009f85..7e7ad9a14 100644 --- a/gramps/gen/lib/date.py +++ b/gramps/gen/lib/date.py @@ -348,7 +348,10 @@ class Span(object): stop2 = Date(*stop2) _repr = (trans_text("between") + " " + self._format(self._diff(start1, stop2),dlocale) + " " + trans_text("and") + " " + self._format(self._diff(stop1, start2),dlocale)) - return _repr + if _repr.find('-') == -1: # we don't have a negative value to return. + return _repr + else: + return '(' + _repr.replace('-', '') + ')' def __eq__(self, other): """