From: Richard Heck Date: Fri, 10 Jul 2009 16:21:47 +0000 (+0000) Subject: Fix for bug 5522, by Sergiu Carpov. X-Git-Tag: 2.0.0~6113 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=43945090c1c2a6d936565ee47aa78ef4d018614e;p=features.git Fix for bug 5522, by Sergiu Carpov. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30453 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ExternalSupport.cpp b/src/insets/ExternalSupport.cpp index 79d98712bd..0b7af3443e 100644 --- a/src/insets/ExternalSupport.cpp +++ b/src/insets/ExternalSupport.cpp @@ -296,7 +296,9 @@ void updateExternal(InsetExternalParams const & params, ALL_BUT_PATHS); // if file is a relative name, it is interpreted // relative to the master document. - exportdata.addExternalFile(rit->first, source, file); + if (makeAbsPath(file, masterBuffer->filePath()) != + params.filename.absFilename()) + exportdata.addExternalFile(rit->first, source, file); } } }