]> git.lyx.org Git - lyx.git/commitdiff
avoid empty class options
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 8 Jun 2012 17:48:24 +0000 (19:48 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 8 Jun 2012 17:48:24 +0000 (19:48 +0200)
src/BufferParams.cpp

index 818399d8d90ed8f9858735598805660b2b497741..7237a94334904b88cce1d018f4dc1d74afa35af5 100644 (file)
@@ -1383,7 +1383,8 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
                                language_options << ',';
                        language_options << language->babel();
                }
-               if (global && !features.needBabelLangOptions())
+               if (global && !features.needBabelLangOptions()
+                   && !language_options.str().empty())
                        clsoptions << language_options.str() << ',';
        }