From fd03b1280eaf4c0907c6a5f0ba30ebb7c14acd8d Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 17 Jul 2010 14:49:30 +0000 Subject: [PATCH] Allow for "Provides babel 1". git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34937 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferParams.cpp | 2 +- src/BufferParams.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index f191ba5e4b..1b63d4f031 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -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()) { diff --git a/src/BufferParams.h b/src/BufferParams.h index 9466758857..e19e817841 100644 --- a/src/BufferParams.h +++ b/src/BufferParams.h @@ -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 &,