]> git.lyx.org Git - features.git/commitdiff
LaTeXFeatures.cpp: fix critical bug, due to this, no Cyrillic document could be compi...
authorUwe Stöhr <uwestoehr@web.de>
Fri, 26 Sep 2008 00:21:35 +0000 (00:21 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Fri, 26 Sep 2008 00:21:35 +0000 (00:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26560 a592a061-630c-0410-9148-cb99ea01b6c8

src/LaTeXFeatures.cpp

index cf85ec564880e4ee7a45761877088ec115d4e162..d1d6fdb8dcf04b0992d52e90c212c6543b3be1eb 100644 (file)
@@ -197,7 +197,7 @@ static string const textcyr_def =
        " \\fontencoding{T2A}\\selectfont\n"
        " \\def\\encodingdefault{T2A}}\n"
        "\\DeclareRobustCommand{\\textcyr}[1]{\\leavevmode{\\cyrtext #1}}\n"
-       "\\DeclareFontEncoding{T2A}{}{}\n";
+       "\\AtBeginDocument{\\DeclareFontEncoding{T2A}{}{}}\n";
 
 static string const lyxmathsym_def =
        "\\DeclareRobustCommand{\\lyxmathsym}[1]{%\n"