]> git.lyx.org Git - features.git/commitdiff
Fix #9792 cyrtext and textcyr in the preamble of every document.
authorGünter Milde <milde@lyx.org>
Mon, 19 Oct 2015 16:21:59 +0000 (18:21 +0200)
committerGünter Milde <milde@lyx.org>
Mon, 19 Oct 2015 16:34:48 +0000 (18:34 +0200)
Add the brackets missing in [468cedb923b/lyxgit].

src/LaTeXFeatures.cpp

index 65e1fc5966635ab388e75bb69461ab1779eab707..562e0e2a00bc2bf6c693d472c9d03596154b40f9 100644 (file)
@@ -1174,11 +1174,12 @@ docstring const LaTeXFeatures::getMacros() const
                macros << textgreek_def << '\n';
        }
 
-       if (!usePolyglossia() && mustProvide("textcyr"))
-               // ensure T2A font encoding is set up also if fontenc is not loaded by LyX
-               if (params_.font_encoding() == "default")
+       if (!usePolyglossia() && mustProvide("textcyr")) {
+               // ensure T2A font encoding is set up also if fontenc is not loaded by LyX
+               if (params_.font_encoding() == "default")
                        macros << textcyr_T2A_def;
                macros << textcyr_def << '\n';
+       }
 
         // non-standard text accents:
        if (mustProvide("textcommaabove") || mustProvide("textcommaaboveright") ||