diff options
authorCaolán McNamara <>2013-03-11 16:59:34 (GMT)
committerCaolán McNamara <>2013-03-11 17:03:04 (GMT)
commit0dd37cc76337d3e851f2270b08e0051dbdb366b1 (patch)
parentded39ea57b25617071012640cbaebaaf72a05744 (diff)
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
1 files changed, 1 insertions, 0 deletions
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 );