From d4e001736535d0761305dd17650b2f0995c8ac13 Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Fri, 2 Mar 2012 17:13:10 +0000 Subject: [PATCH] 0005605: GEDCOM inport: Embedded from of MULTIMEDIA_LINK in INDIVIDUAL_RECORD does not use IdMapper svn: r18990 --- src/plugins/lib/libgedcom.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/lib/libgedcom.py b/src/plugins/lib/libgedcom.py index 857cd8883..69a70769e 100644 --- a/src/plugins/lib/libgedcom.py +++ b/src/plugins/lib/libgedcom.py @@ -3227,7 +3227,6 @@ class GedcomParser(UpdateCallback): def __person_object(self, line, state): """ - Currently, the embedded form is not supported Embedded form @@ -3247,8 +3246,10 @@ class GedcomParser(UpdateCallback): @type state: CurrentState """ if line.data and line.data[0] == '@': + # Reference to a named multimedia object defined elsewhere + gramps_id = self.oid_map[line.data] + handle = self.__find_object_handle(gramps_id) ref = gen.lib.MediaRef() - handle = self.__find_object_handle(line.data[1:-1]) ref.set_reference_handle(handle) state.person.add_media_reference(ref) else: