From 47f7d44747002726307e615ddf0ad35dc8b59dbf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Sun, 24 Jun 2012 14:42:23 +0200 Subject: [PATCH] fix bug #8215 Font.cpp: CJK parts must not have a closing brace because they are within an environment --- src/Font.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Font.cpp b/src/Font.cpp index 9e8375c29c..387393d60b 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -540,7 +540,8 @@ int Font::latexWriteEndChanges(otexstream & os, BufferParams const & bparams, } if (closeLanguage && - language() != base.language() && language() != next.language()) { + language() != base.language() && language() != next.language() + && language()->encoding()->package() != Encoding::CJK) { os << '}'; ++count; } -- 2.39.2