]> git.lyx.org Git - lyx.git/commitdiff
BufferParams.cpp: fix bug 3568:
authorUwe Stöhr <uwestoehr@web.de>
Mon, 7 May 2007 18:55:14 +0000 (18:55 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Mon, 7 May 2007 18:55:14 +0000 (18:55 +0000)
http://bugzilla.lyx.org/show_bug.cgi?id=3568

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18227 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferParams.cpp

index 18ce49e191f13b5c11ed6f34bdd73e2af4846881..8947763561c07773ffd4557a3069e7635d5dabae 100644 (file)
@@ -1391,6 +1391,11 @@ string const BufferParams::babelCall(string const & lang_opts) const
        string tmp = lyxrc.language_package;
        if (!lyxrc.language_global_options && tmp == "\\usepackage{babel}")
                tmp = string("\\usepackage[") + lang_opts + "]{babel}";
+       // suppress the babel call when there is no babel language defined
+       // in the lib/languages file
+       if (lyxrc.language_global_options && tmp == "\\usepackage{babel}" &&
+               language->babel().empty() )
+               tmp = string("");
        return tmp;
 }