From 9a4adab9d6bd75ff323fc63243e3910d96e78e4b Mon Sep 17 00:00:00 2001 From: Paul Culley Date: Fri, 19 Feb 2021 11:32:33 -0600 Subject: [PATCH] Fix Locations Gramplet (Enclosed by) to properly displaycertain nested places. (#1127) when the smallest place has undated enclosure and larger places are dated. Issue #11691 --- gramps/plugins/gramplet/locations.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/plugins/gramplet/locations.py b/gramps/plugins/gramplet/locations.py index d60960959..808f317f6 100644 --- a/gramps/plugins/gramplet/locations.py +++ b/gramps/plugins/gramplet/locations.py @@ -300,6 +300,8 @@ class DateRange: """ start = None stop = None + if date.is_empty(): + return (None, None) if date.modifier == Date.MOD_NONE: start = date.sortval stop = date.sortval