Crash when import complex .gramps 5.0 current branch backup file
Fixes #10152
This commit is contained in:
@ -2515,8 +2515,10 @@ class GrampsParser(UpdateCallback):
|
|||||||
date_value = self.name.get_date_object()
|
date_value = self.name.get_date_object()
|
||||||
elif self.event:
|
elif self.event:
|
||||||
date_value = self.event.get_date_object()
|
date_value = self.event.get_date_object()
|
||||||
else:
|
elif self.placeref:
|
||||||
date_value = self.placeref.get_date_object()
|
date_value = self.placeref.get_date_object()
|
||||||
|
else:
|
||||||
|
date_value = self.place_name.get_date_object()
|
||||||
|
|
||||||
date_value.set_as_text(attrs['val'])
|
date_value.set_as_text(attrs['val'])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user