Fix for bug 5522, by Sergiu Carpov.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30453 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-07-10 16:21:47 +00:00
parent 7a850e3d64
commit 43945090c1

View File

@ -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);
}
}
}