BufferParams.cpp: fix #6714

OK also for branch?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34451 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2010-05-22 13:05:07 +00:00
parent edd8a321bf
commit 3d91ff0e40

View File

@ -1335,9 +1335,12 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
// LFE encoding
// XeTeX works without fontenc
if (font_encoding() != "default" && language->lang() != "japanese"
&& !useXetex) {
&& !useXetex) {
size_t fars = language_options.str().find("farsi");
size_t arab = language_options.str().find("arabic");
if (language->lang() == "arabic_arabi"
|| language->lang() == "farsi") {
|| language->lang() == "farsi" || fars != string::npos
|| arab != string::npos) {
os << "\\usepackage[" << from_ascii(font_encoding())
<< ",LFE,LAE]{fontenc}\n";
texrow.newline();