commit 66aa0d86994f173a0be18478d75c74a37ffcf815
Author: Juergen Spitzmueller <[email protected]>
Date: Sun Aug 25 13:23:57 2024 +0200
Avoid empty option in babelCall
---
src/BufferParams.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
index e8f302537c..5930aaf7b9 100644
--- a/src/BufferParams.cpp
+++ b/src/BufferParams.cpp
@@ -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();
}
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs