]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlex_pimpl.C
* Replace all use of 'slashify_path' with 'internal_path'.
[lyx.git] / src / lyxlex_pimpl.C
index a13a9fa6d621bbae7f485553350e54f9fceec4fd..af2b2577a4aa8f87c66a0c31d8363f44afe42f39 100644 (file)
@@ -21,7 +21,7 @@
 #include "support/lstrings.h"
 
 using lyx::support::compare_ascii_no_case;
-using lyx::support::getExtFromContents;
+using lyx::support::getFormatFromContents;
 using lyx::support::MakeDisplayPath;
 using lyx::support::split;
 using lyx::support::subst;
@@ -131,9 +131,8 @@ void LyXLex::Pimpl::popTable()
 
 bool LyXLex::Pimpl::setFile(string const & filename)
 {
-
        // Check the format of the file.
-       string const format = getExtFromContents(filename);
+       string const format = getFormatFromContents(filename);
 
        if (format == "gzip" || format == "zip" || format == "compress") {
                lyxerr[Debug::LYXLEX] << "lyxlex: compressed" << endl;