From: Enrico Forestieri Date: Wed, 20 May 2015 14:04:18 +0000 (+0200) Subject: Also find external material files when the document is moved and origin is known X-Git-Tag: 2.2.0alpha1~717 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7b0ecf1f38ca87fc364c053ca5cc6e0bc4bc17d6;p=lyx.git Also find external material files when the document is moved and origin is known --- diff --git a/src/insets/InsetExternal.cpp b/src/insets/InsetExternal.cpp index 6417013696..3d286b6f60 100644 --- a/src/insets/InsetExternal.cpp +++ b/src/insets/InsetExternal.cpp @@ -272,7 +272,7 @@ bool InsetExternalParams::read(Buffer const & buffer, Lexer & lex) case EX_FILENAME: { lex.eatLine(); string const name = lex.getString(); - filename.set(name, buffer.filePath()); + filename.set(name, buffer.originFilePath()); break; }