From a421439a76a1a8982555ac9512559818d1c951e6 Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Thu, 28 Mar 2013 14:29:25 +0000 Subject: [PATCH] referencedbyselection.py. 0006493: crash during Calculate Preview of a filtered XML export. svn: r21786 --- gramps/gen/proxy/referencedbyselection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gen/proxy/referencedbyselection.py b/gramps/gen/proxy/referencedbyselection.py index 9739fb482..8b3338634 100644 --- a/gramps/gen/proxy/referencedbyselection.py +++ b/gramps/gen/proxy/referencedbyselection.py @@ -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)