From 78378912a3590ba213a4c8280935106ccc9f25c1 Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Wed, 23 May 2007 07:27:13 +0000 Subject: [PATCH] * fix http://bugzilla.lyx.org/show_bug.cgi?id=3668: \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 --- src/tex2lyx/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index a013208f57..f1a9998ae0 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -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.