mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Avoid empty option in babelCall
This commit is contained in:
parent
b625138be6
commit
66aa0d8699
@ -3539,7 +3539,7 @@ string BufferParams::babelCall(LaTeXFeatures const & features, string lang_opts,
|
||||
lang_opts = getStringFromVector(blangs);
|
||||
// The prefs may require the languages to
|
||||
// be submitted to babel itself (not the class).
|
||||
if (langoptions || have_mods)
|
||||
if ((langoptions || have_mods) && !lang_opts.empty())
|
||||
return "\\usepackage[" + lang_opts + "]{babel}" + os.str();
|
||||
return "\\usepackage{babel}" + os.str();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user