From: Uwe Stöhr Date: Fri, 26 Sep 2008 00:21:35 +0000 (+0000) Subject: LaTeXFeatures.cpp: fix critical bug, due to this, no Cyrillic document could be compi... X-Git-Tag: 1.6.10~3319 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2c5637b83108aae0be551d70b12356db8f1d96a2;p=features.git LaTeXFeatures.cpp: fix critical bug, due to this, no Cyrillic document could be compiled with LyX 1.6 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26560 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index cf85ec5648..d1d6fdb8dc 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -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"