\input{foo} means to input foo.tex, so add the .tex extension. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18470 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2007-05-23 07:27:13 +00:00
parent 43215a323f
commit 78378912a3

View File

@ -2154,7 +2154,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
// therefore path is only used for testing
// FIXME UNICODE encoding of filename and path may be
// wrong (makeAbsPath expects utf8)
if (t.cs() == "include" &&
if ((t.cs() == "include" || t.cs() == "input") &&
!fs::exists(makeAbsPath(filename, path).toFilesystemEncoding())) {
// The file extension is probably missing.
// Now try to find it out.