9381: Fix Encloses gramplet to display correct place references

This commit is contained in:
Nick Hall 2016-05-21 18:55:06 +01:00
parent 6f94ec8ef3
commit ed936f9975

View File

@ -208,10 +208,7 @@ 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:
if placeref.ref == place.handle:
self.add_place(placeref, child_place, node, visited)
self.set_has_data(self.model.count > 0)