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

svn: r21787
This commit is contained in:
Tim G L Lyons 2013-03-28 14:32:11 +00:00
parent 3783a8039b
commit 16ba9f25de

View File

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