From 75efe4f5d742d768cf4070becf9a8fc8db5b589e Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Mon, 8 Jul 2013 01:44:32 +0000 Subject: [PATCH] Span maximums and minimums must always be positive numbers svn: r22657 --- gramps/gen/lib/date.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gen/lib/date.py b/gramps/gen/lib/date.py index 3b6c81cbc..24fb740a4 100644 --- a/gramps/gen/lib/date.py +++ b/gramps/gen/lib/date.py @@ -203,8 +203,8 @@ class Span(object): start, stop = self.date1.get_start_stop_range() start = Date(*start) stop = Date(*stop) - v1 = self.date2.sortval - start.sortval # min - v2 = self.date2.sortval - stop.sortval # max + v1 = start.sortval - self.date2.sortval # min + v2 = stop.sortval - self.date2.sortval # max self.sort = (v1, v2 - v1) self.minmax = (v1, v2) elif self.date2.get_modifier() == Date.MOD_BEFORE: