diff --git a/gramps/gui/filters/sidebar/_placesidebarfilter.py b/gramps/gui/filters/sidebar/_placesidebarfilter.py index 04bff9642..1bade77c1 100644 --- a/gramps/gui/filters/sidebar/_placesidebarfilter.py +++ b/gramps/gui/filters/sidebar/_placesidebarfilter.py @@ -139,7 +139,7 @@ class PlaceSidebarFilter(SidebarFilter): generic_filter.add_rule(rule) if enclosed: - rule = IsEnclosedBy([enclosed]) + rule = IsEnclosedBy([enclosed, '0']) generic_filter.add_rule(rule) rule = HasData([name, ptype, code], use_regex=regex)