mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Avoid duplicate option passing with babel
This commit is contained in:
parent
401b783575
commit
8ff3e467a1
@ -3503,6 +3503,7 @@ string BufferParams::babelCall(LaTeXFeatures const & features, string lang_opts,
|
||||
langs.insert(language);
|
||||
for (auto const & l : langs) {
|
||||
string blang = l->babel();
|
||||
bool use_opt = langoptions;
|
||||
if (blang.empty())
|
||||
continue;
|
||||
if (l->babelOptFormat() == "modifier") {
|
||||
@ -3516,8 +3517,10 @@ string BufferParams::babelCall(LaTeXFeatures const & features, string lang_opts,
|
||||
blang = "modifiers." + blang + "=" + s;
|
||||
have_one = true;
|
||||
}
|
||||
use_opt = true;
|
||||
}
|
||||
}
|
||||
if (use_opt)
|
||||
blangs.push_back(blang);
|
||||
}
|
||||
if (have_mods)
|
||||
|
Loading…
Reference in New Issue
Block a user