Two fixes to address issues with living proxy and GEDCOM export
svn: r15295
This commit is contained in:
parent
97eff89616
commit
38d8332970
@ -306,7 +306,7 @@ class ProxyDbBase(DbReadBase):
|
||||
"""
|
||||
Returns obj if predicate is True or not callable, else returns None
|
||||
"""
|
||||
if predicate is not None:
|
||||
if predicate is not None and obj is not None:
|
||||
return obj if predicate(obj.handle) else None
|
||||
return obj
|
||||
|
||||
|
@ -1286,6 +1286,8 @@ class GedcomWriter(UpdateCallback):
|
||||
return
|
||||
|
||||
src = self.dbase.get_source_from_handle(src_handle)
|
||||
if src is None:
|
||||
return
|
||||
|
||||
# Reference to the source
|
||||
self.__writeln(level, "SOUR", "@%s@" % src.get_gramps_id())
|
||||
|
Loading…
Reference in New Issue
Block a user