final final touch.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26208 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-08-19 07:51:40 +00:00
parent db9885f882
commit 9bfc1c9d46

View File

@ -918,9 +918,11 @@ pair<bool, int> switchEncoding(odocstream & os, BufferParams const & bparams,
open_encoding_ = none;
count += 7;
}
if (runparams.local_font != 0 && oldEnc.package() == Encoding::CJK) {
// within insets, \inputenc switches need to be
// embraced within \bgroup ... \egroup; else CJK fails.
if (runparams.local_font != 0
&& oldEnc.package() == Encoding::CJK) {
// within insets, \inputenc switches need
// to be embraced within \bgroup...\egroup;
// else CJK fails.
os << "\\bgroup";
count += 7;
open_encoding_ = inputenc;