summaryrefslogtreecommitdiff
authorCaolán McNamara <caolanm@redhat.com>2013-03-11 16:59:34 (GMT)
committer Caolán McNamara <caolanm@redhat.com>2013-03-11 17:03:04 (GMT)
commit0dd37cc76337d3e851f2270b08e0051dbdb366b1 (patch) (side-by-side diff)
treeea3227dc49c528a349442acaaaf09c214f695bb6
parentded39ea57b25617071012640cbaebaaf72a05744 (diff)
downloadcore-0dd37cc76337d3e851f2270b08e0051dbdb366b1.zip
core-0dd37cc76337d3e851f2270b08e0051dbdb366b1.tar.gz
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
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--sw/source/core/inc/swfont.hxx1
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 );