Fix for a iter change
svn: r13198
This commit is contained in:
parent
34442f5853
commit
d76615b086
@ -283,8 +283,7 @@ class DataEntryGramplet(Gramplet):
|
||||
|
||||
def get_or_create_place(self, place_name):
|
||||
if place_name == "": return (-1, None)
|
||||
place_list = self.dbstate.iter.get_place_handles()
|
||||
for place_handle in place_list:
|
||||
for place_handle in self.dbstate.db.iter_place_handles():
|
||||
place = self.dbstate.db.get_place_from_handle(place_handle)
|
||||
if place.get_title().strip() == place_name:
|
||||
return (0, place) # (old, object)
|
||||
|
Loading…
Reference in New Issue
Block a user