[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Mon Mar 11 10:03:26 PDT 2013
sw/source/core/inc/swfont.hxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 0dd37cc76337d3e851f2270b08e0051dbdb366b1
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Mar 11 16:59:34 2013 +0000
Related: fdo#62154 correct font lang is a requirement for applying locl
If the language of the font changes we have to throw away the "magic" cache.
Otherwise we continue to use the parent paragraph style's font language, which
isn't going to fly if we want to propogate the language down to vcl to give to
icu to allow it to apply the expected locl tables.
This is the fruit of an 8 hour debugging session. I hate writer.
Change-Id: Ic32f7a223b527e702370d5d8b9f9ede59efd8a80
diff --git a/sw/source/core/inc/swfont.hxx b/sw/source/core/inc/swfont.hxx
index cb80113..52f7018 100644
--- a/sw/source/core/inc/swfont.hxx
+++ b/sw/source/core/inc/swfont.hxx
@@ -746,6 +746,7 @@ inline void SwFont::SetEscapement( const short nNewEsc )
inline void SwSubFont::SetLanguage( LanguageType eNewLang )
{
+ pMagic = 0;
if( eNewLang == LANGUAGE_SYSTEM )
eNewLang = (LanguageType)GetAppLanguage();
SvxFont::SetLanguage( eNewLang );
More information about the Libreoffice-commits
mailing list