Kaydet (Commit) 0dd37cc7 authored tarafından Caolán McNamara's avatar Caolán McNamara

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
üst ded39ea5
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment