X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLexer.cpp;h=c4b738f119bcf13fe903d8a74df6e53e1514bc28;hb=51cc8aa9f6b784f806b1d9cc97fe0749ffac29af;hp=06a3408f41e9591d77afabfbb3074d2f3b18d9de;hpb=26e5f1a8ec3eb2952e49c87c91395fdcdceddfe9;p=lyx.git diff --git a/src/Lexer.cpp b/src/Lexer.cpp index 06a3408f41..c4b738f119 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -238,14 +238,8 @@ void Lexer::Pimpl::popTable() bool Lexer::Pimpl::setFile(FileName const & filename) { -#ifdef TEX2LYX - // tex2lyx does not read lyxrc and therefore can't really check for - // zipped formats. - if (false) { -#else // Check the format of the file. if (formats.isZippedFile(filename)) { -#endif 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 @@ -575,7 +569,7 @@ void Lexer::Pimpl::pushToken(string const & pt) ////////////////////////////////////////////////////////////////////// Lexer::Lexer() - : pimpl_(new Pimpl(0, 0)) + : pimpl_(new Pimpl(0, 0)), lastReadOk_(false) {}