]> git.lyx.org Git - lyx.git/blobdiff - src/Lexer.cpp
Account for old versions of Pygments
[lyx.git] / src / Lexer.cpp
index 78bf9f49c23394c86c265eabbadebd911d349b67..bbae12418c0bd1da6abfd542a6cdbc63b2e1976b 100644 (file)
@@ -239,7 +239,7 @@ void Lexer::Pimpl::popTable()
 bool Lexer::Pimpl::setFile(FileName const & filename)
 {
        // Check the format of the file.
-       if (formats.isZippedFile(filename)) {
+       if (theFormats().isZippedFile(filename)) {
                LYXERR(Debug::LYXLEX, "lyxlex: compressed");
                // The check only outputs a debug message, because it triggers
                // a bug in compaq cxx 6.2, where is_open() returns 'true' for