]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeX.cpp
SCons: msvc does not need this /TP option any more after we rename .C => .cpp. Also...
[lyx.git] / src / LaTeX.cpp
index 8f6bd510d813e0f26320fbb430eb936e8fb0e542..b5802420294ccc08fa3b3d179150fb6c921ecbf6 100644 (file)
 
 #include <fstream>
 
+using boost::regex;
+using boost::smatch;
+
+#ifndef CXX_GLOBAL_CSTD
+using std::sscanf;
+#endif
+
+using std::endl;
+using std::getline;
+using std::string;
+using std::ifstream;
+using std::set;
+using std::vector;
+
 
 namespace lyx {
 
@@ -62,21 +76,6 @@ using support::trim;
 namespace os = support::os;
 namespace fs = boost::filesystem;
 
-using boost::regex;
-using boost::smatch;
-
-
-#ifndef CXX_GLOBAL_CSTD
-using std::sscanf;
-#endif
-
-using std::endl;
-using std::getline;
-using std::string;
-using std::ifstream;
-using std::set;
-using std::vector;
-
 // TODO: in no particular order
 // - get rid of the call to
 //   BufferList::updateIncludedTeXfiles, this should either
@@ -690,7 +689,9 @@ int LaTeX::scanLogFile(TeXErrors & terr)
                                // we have a latex error
                                retval |=  TEX_ERROR;
                                if (contains(desc,
-                                   "Package babel Error: You haven't defined the language"))
+                                   "Package babel Error: You haven't defined the language") ||
+                                   contains(desc,
+                                   "Package babel Error: You haven't loaded the option"))
                                        retval |= ERROR_RERUN;
                                // get the line number:
                                int line = 0;