]> git.lyx.org Git - features.git/blobdiff - src/Buffer.cpp
Revert "Mark some intentional fall-throughs (in a way understandable to gcc)"
[features.git] / src / Buffer.cpp
index a9cc619060193b58232cf8d64d25a0a632f7c9d3..d7e827fc2aa05f427d0d187b744ec383e66801d6 100644 (file)
@@ -55,6 +55,7 @@
 #include "ParagraphParameters.h"
 #include "ParIterator.h"
 #include "PDFOptions.h"
+#include "Session.h"
 #include "SpellChecker.h"
 #include "sgml.h"
 #include "texstream.h"
@@ -980,6 +981,8 @@ int Buffer::readHeader(Lexer & lex)
                errorList.push_back(ErrorItem(_("Document header error"), s));
        }
 
+       params().shell_escape = theSession().shellescapeFiles().find(absFileName());
+
        params().makeDocumentClass();
 
        return unknown_tokens;