]> git.lyx.org Git - features.git/commitdiff
* fix http://bugzilla.lyx.org/show_bug.cgi?id=3668:
authorStefan Schimanski <sts@lyx.org>
Wed, 23 May 2007 07:27:13 +0000 (07:27 +0000)
committerStefan Schimanski <sts@lyx.org>
Wed, 23 May 2007 07:27:13 +0000 (07:27 +0000)
  \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

index a013208f57f14c97a424a2014ac36fbef6ad5cce..f1a9998ae02fa590c9526e30bdc0deb630c04d8c 100644 (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.