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
This commit is contained in:
Paul Culley 2021-02-19 11:32:33 -06:00 committed by GitHub
parent bb0647274b
commit 9a4adab9d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -300,6 +300,8 @@ class DateRange:
""" """
start = None start = None
stop = None stop = None
if date.is_empty():
return (None, None)
if date.modifier == Date.MOD_NONE: if date.modifier == Date.MOD_NONE:
start = date.sortval start = date.sortval
stop = date.sortval stop = date.sortval