From 16ba9f25de58ad757b174f44566f46f69d2d6a96 Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Thu, 28 Mar 2013 14:32:11 +0000 Subject: [PATCH] referencedbyselection.py. 0006493: crash during Calculate Preview of a filtered XML export. svn: r21787 --- 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)