From a70f7eb58fbec7ae0ee3f6df48a9adbff33e7aa1 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Sat, 21 May 2016 18:55:06 +0100 Subject: [PATCH] 9381: Fix Encloses gramplet to display correct place references --- gramps/plugins/gramplet/locations.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gramps/plugins/gramplet/locations.py b/gramps/plugins/gramplet/locations.py index 3c12a4e7f..19e5d2c9f 100644 --- a/gramps/plugins/gramplet/locations.py +++ b/gramps/plugins/gramplet/locations.py @@ -208,11 +208,8 @@ class Encloses(Locations): child_place = self.dbstate.db.get_place_from_handle(link[1]) placeref = None for placeref in child_place.get_placeref_list(): - if placeref.ref != place.handle: - continue - - if placeref: - self.add_place(placeref, child_place, node, visited) + if placeref.ref == place.handle: + self.add_place(placeref, child_place, node, visited) self.set_has_data(self.model.count > 0) self.model.tree.expand_all()