mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
59598a0d25
commit
fd03b1280e
@ -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()) {
|
||||
|
@ -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 &,
|
||||
|
Loading…
Reference in New Issue
Block a user