From a90139cb9acb1c376026cff5ddbbb3d1468b6004 Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Fri, 15 Nov 2013 15:04:03 +0200 Subject: [PATCH] 7197, 7100: missing recalc_sort_value in ny code Fix bug #7197 --- gramps/gen/lib/date.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gen/lib/date.py b/gramps/gen/lib/date.py index a5c6a694e..cf65c3018 100644 --- a/gramps/gen/lib/date.py +++ b/gramps/gen/lib/date.py @@ -4,6 +4,7 @@ # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2009-2013 Douglas S. Blank # Copyright (C) 2013 Paul Franklin +# Copyright (C) 2013 Vassilii Khachaturov # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -1546,6 +1547,7 @@ class Date(object): year_delta = -1 d1 = Date(self.get_year() + year_delta, self.get_month(), self.get_day()) d1.set_calendar(self.calendar) + d1.recalc_sort_value() self.sortval = d1.sortval return year_delta