]> git.lyx.org Git - lyx.git/commitdiff
Also find external material files when the document is moved and origin is known
authorEnrico Forestieri <forenr@lyx.org>
Wed, 20 May 2015 14:04:18 +0000 (16:04 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 20 May 2015 14:04:18 +0000 (16:04 +0200)
src/insets/InsetExternal.cpp

index 6417013696a3f043dc12ae4ea3ed3014bb2f0583..3d286b6f6041785837bdab4c9a04bbc6f505641b 100644 (file)
@@ -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;
                }