referencedbyselection.py. 0006493: crash during Calculate Preview of a filtered XML export.

svn: r21786
This commit is contained in:
Tim G L Lyons 2013-03-28 14:29:25 +00:00
parent 7ac463b03b
commit a421439a76

View File

@ -325,6 +325,8 @@ class ReferencedBySelectionProxyDb(ProxyDbBase):
if tag.name == 'Link': if tag.name == 'Link':
if tag.value.startswith("gramps://"): if tag.value.startswith("gramps://"):
obj_class, prop, value = tag.value[9:].split("/") obj_class, prop, value = tag.value[9:].split("/")
if obj_class == "Media": # bug6493
obj_class = "MediaObject"
if prop == "handle": if prop == "handle":
self.process_object(obj_class, value) self.process_object(obj_class, value)