]> git.lyx.org Git - features.git/commitdiff
tex2lyx/text.cpp: add a missing ',' and use LyX's method to remove the file extension...
authorUwe Stöhr <uwestoehr@web.de>
Sun, 11 Dec 2011 23:17:02 +0000 (23:17 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sun, 11 Dec 2011 23:17:02 +0000 (23:17 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40480 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/text.cpp

index 2b5d0acb0bcce21293a0d124c28f565ea8ae7167..53c6cd722f452dd08a83c44f463d22b5706c6647 100644 (file)
@@ -2352,9 +2352,10 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                                                // The file extension is in every case ".tex".
                                                // So we need to remove this extension and check for
                                                // the original one.
-                                               name.erase(name.length() - 4, name.length());
+                                               name = removeExtension(name);
+                                               //name.erase(name.length() - 4, name.length());
                                                if (!makeAbsPath(name, path).exists()) {
-                                                       char const * const Gnumeric_formats[] = {"gnumeric"
+                                                       char const * const Gnumeric_formats[] = {"gnumeric",
                                                                "ods", "xls", 0};
                                                        string const Gnumeric_name =
                                                                find_file(name, path, Gnumeric_formats);