From 2a3514c21fc41ac6981a46e87b75e455d284b2ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Fri, 27 Jul 2007 18:43:52 +0000 Subject: [PATCH] * src/LaTeX.cpp: Get rid of annoying LaTeX error after changing the document language (bug 2468) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19230 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LaTeX.cpp | 4 +++- status.15x | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/LaTeX.cpp b/src/LaTeX.cpp index 1cbbe2a915..b580242029 100644 --- a/src/LaTeX.cpp +++ b/src/LaTeX.cpp @@ -689,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; diff --git a/status.15x b/status.15x index 91f47e304b..5c69d09b1e 100644 --- a/status.15x +++ b/status.15x @@ -30,7 +30,8 @@ What's new * DOCUMENT INPUT/OUTPUT - +- Get rid of annoying LaTeX error after changing the document language + (bug 2468) * USER INTERFACE: