Allow for "Provides babel 1".

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34937 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-07-17 14:49:30 +00:00
parent 59598a0d25
commit fd03b1280e
2 changed files with 2 additions and 2 deletions

View File

@ -1288,7 +1288,7 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
features.useLanguage(default_language);
ostringstream language_options;
bool const use_babel = features.useBabel();
bool const use_babel = features.useBabel() && !tclass.provides("babel");
if (use_babel) {
language_options << features.getLanguages();
if (!language->babel().empty()) {

View File

@ -79,7 +79,7 @@ public:
void validate(LaTeXFeatures &) const;
/** \returns true if the babel package is used (interogates
* the BufferParams and a LyXRC variable).
* the BufferParams, a LyXRC variable, and the document class).
* This returned value can then be passed to the insets...
*/
bool writeLaTeX(odocstream &, LaTeXFeatures &, TexRow &,