Fix unbalanced bracket problem with CJK

The bug was introduced with commit [47f7d447/lyxgit], where the unnecessary trailing bracket in CJK environments was suppresed, but not the preceding bracket (which is only output if CJK is a secondary language).
This commit is contained in:
Juergen Spitzmueller 2013-10-11 12:19:41 +02:00
parent 6a30211fef
commit 969f49c2c5

View File

@ -286,7 +286,7 @@ int Font::latexWriteStartChanges(odocstream & os, BufferParams const & bparams,
tmp += "{";
os << from_ascii(tmp);
count += tmp.length();
} else {
} else if (language()->encoding()->package() != Encoding::CJK) {
os << '{';
count += 1;
}
@ -321,7 +321,7 @@ int Font::latexWriteStartChanges(odocstream & os, BufferParams const & bparams,
"$$lang", language()->babel());
os << from_ascii(tmp);
count += tmp.length();
} else {
} else if (language()->encoding()->package() != Encoding::CJK) {
os << '{';
count += 1;
}