From 37bea0a1622c9f142cbef1c3d346aef57fdf626d Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 29 Dec 2003 19:49:32 +0000 Subject: [PATCH] * src/Date.py: catch day changes if the date has both a start and stop part svn: r2567 --- gramps2/src/Date.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gramps2/src/Date.py b/gramps2/src/Date.py index 9be3333ba..460951654 100644 --- a/gramps2/src/Date.py +++ b/gramps2/src/Date.py @@ -459,9 +459,9 @@ def compare_dates(f,s): return cmp(first.year,second.year) elif first.month != second.month: return cmp(first.month,second.month) - elif f.range != 1: + elif first.day != second.day: return cmp(first.day,second.day) - else: + elif f.range == 1: first = f.get_stop_date() second = s.get_stop_date() if first.mode != second.mode: @@ -472,3 +472,4 @@ def compare_dates(f,s): return cmp(first.month,second.month) else: return cmp(first.day,second.day) + return 0