From 0cd51c41a884832a2207a240cb0f7f9faf02285a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Tue, 23 Nov 2010 10:18:46 +0000 Subject: [PATCH] * 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 --- src/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Font.cpp b/src/Font.cpp index f3f3b0e2a1..c24ddc6c4e 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -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();