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