* Font.cpp: let's compare the lyx name here. Polyglossia name can be ambigouos (cf. "german" [german] vs. "german" [ngerman]).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36439 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-11-23 10:18:46 +00:00
parent bd3dcea835
commit 0cd51c41a8

View File

@ -275,7 +275,7 @@ int Font::latexWriteStartChanges(odocstream & os, BufferParams const & bparams,
// polyglossia or babel?
if (runparams.use_polyglossia
&& language()->polyglossia() != base.language()->polyglossia()
&& language()->lang() != base.language()->lang()
&& language() != prev.language()) {
if (!language()->polyglossia().empty()) {
string tmp = "\\text" + language()->polyglossia();